summaryrefslogtreecommitdiff
path: root/Resources.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Resources.cmake')
-rw-r--r--Resources.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Resources.cmake b/Resources.cmake
index fc5d20c6..15ef15ea 100644
--- a/Resources.cmake
+++ b/Resources.cmake
@@ -16,11 +16,11 @@ function (make_resources dst)
16 file (REMOVE ${dst}) 16 file (REMOVE ${dst})
17 get_filename_component (dstName ${dst} NAME) 17 get_filename_component (dstName ${dst} NAME)
18 message (STATUS " ${dstName}") 18 message (STATUS " ${dstName}")
19 set (versionTempPath ${CMAKE_SOURCE_DIR}/res/VERSION) 19 set (versionTempPath ${CMAKE_CURRENT_SOURCE_DIR}/res/VERSION)
20 file (WRITE ${versionTempPath} ${PROJECT_VERSION}) 20 file (WRITE ${versionTempPath} ${PROJECT_VERSION})
21 execute_process ( 21 execute_process (
22 COMMAND ${ZIP_EXECUTABLE} -1 ${dst} VERSION ${files} 22 COMMAND ${ZIP_EXECUTABLE} -1 ${dst} VERSION ${files}
23 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/res 23 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res
24 OUTPUT_QUIET 24 OUTPUT_QUIET
25 ) 25 )
26 file (REMOVE ${versionTempPath}) 26 file (REMOVE ${versionTempPath})