From 27384fc70dd7570864cb1045625b32b0f263b726 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 13 May 2017 17:01:24 +0300 Subject: [PATCH] Do not create symlink to executable on macOS too This link in build directory pointed to non-existing file since we started to create application bundle with CMake --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eb8871bd7..387d6855f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1253,7 +1253,7 @@ if( MSVC ) create_default_target_launcher( zdoom WORKING_DIRECTORY ${ZDOOM_OUTPUT_DIR} ) endif() -if( NOT WIN32 ) +if( NOT WIN32 AND NOT APPLE ) FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME} ]; then ln -sf ${CMAKE_CURRENT_BINARY_DIR}/${ZDOOM_EXE_NAME} ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME}; fi" ) add_custom_command( TARGET zdoom POST_BUILD COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make