diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-26 13:34:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-26 13:35:51 +0300 |
commit | 671b6d41c408d8cf16bf9a1d0cb38dfa185c61b9 (patch) | |
tree | 050420094803b837b22850b6871c58f03b88a4ee /source/creator | |
parent | ef2bde11d22875368fa7386f1a5cec6aeed7ec7c (diff) |
CMake: Fix Blender.app creation/modification time
It was failing on first run of CMake since the Blender.app is not yet
created.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 720e26b24e2..ced0532a8fa 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -921,6 +921,11 @@ elseif(APPLE) OUTPUT_STRIP_TRAILING_WHITESPACE) # Give the bundle actual creation/modification date + # + # Note that the directory might not yet exist, which happens when CMake is first run. + if(NOT EXISTS ${EXECUTABLE_OUTPUT_PATH}/Blender.app) + file(MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/Blender.app) + endif() execute_process(COMMAND SetFile -d ${SETFILE_DATE} -m ${SETFILE_DATE} ${EXECUTABLE_OUTPUT_PATH}/Blender.app) |