From 83a893c06f4df39e58c0eaf149e25b81f24e3d75 Mon Sep 17 00:00:00 2001 From: Masaru Tsuchiyama Date: Sat, 1 Sep 2018 21:10:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=AD=E3=82=B8=E3=82=A7=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=81=AE=E4=BE=9D=E5=AD=98=E9=96=A2=E4=BF=82=E3=82=92?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_lang_en_US/CMakeLists.txt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/sakura_lang_en_US/CMakeLists.txt b/sakura_lang_en_US/CMakeLists.txt index e36cbda02b..2c80130383 100644 --- a/sakura_lang_en_US/CMakeLists.txt +++ b/sakura_lang_en_US/CMakeLists.txt @@ -23,6 +23,8 @@ file(GLOB_RECURSE RESOURCE_FILES ./*.rc) add_library(${project_name} MODULE ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES}) add_dependencies(${project_name} HeaderMake) +add_dependencies(${project_name} OutHeaderMake) +add_dependencies(${project_name} OutGitHash) get_target_property(HeaderMake_RUNTIME_OUTPUT_DIRECTORY HeaderMake RUNTIME_OUTPUT_DIRECTORY) set(update_HeaderMake_BAT ${sakura_SOURCE_DIR}/../sakura/funccode.bat) @@ -31,20 +33,6 @@ set(update_HeaderMake_DIR_DAT ${sakura_SOURCE_DIR}) set(update_gitHash_BAT ${sakura_SOURCE_DIR}/../sakura/githash.bat) set(update_gitHash_DIR_DAT ${sakura_SOURCE_DIR}) -# set pre-Build -add_custom_command( - TARGET ${project_name} - PRE_BUILD - COMMAND ${update_HeaderMake_BAT} ${update_HeaderMake_DIR_EXE} ${update_HeaderMake_DIR_DAT} -) - -# set pre-Build -add_custom_command( - TARGET ${project_name} - PRE_BUILD - COMMAND ${update_gitHash_BAT} ${update_gitHash_DIR_DAT} -) - # add definition add_definitions(-D_UNICODE -DUNICODE) add_definitions(-DWIN32 -D_WINDOWS -DNOMINMAX -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501)