diff --git a/src/openstudio_app/CMakeLists.txt b/src/openstudio_app/CMakeLists.txt index c6b0a6872..134473d5e 100644 --- a/src/openstudio_app/CMakeLists.txt +++ b/src/openstudio_app/CMakeLists.txt @@ -472,6 +472,13 @@ if( APPLE ) "${CMAKE_INSTALL_PREFIX}/OpenStudioApp.app/Contents/Frameworks/$" COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_INSTALL_PREFIX}/bin" + + COMMAND_ECHO STDOUT + COMMAND_ERROR_IS_FATAL ANY + ) + + # We break it into two `execute_process`es so that there is no race condition between the make_directory above and the create_symlink below + execute_process( COMMAND "${CMAKE_COMMAND}" -E create_symlink "../OpenStudioApp.app/Contents/MacOS/$" "${CMAKE_INSTALL_PREFIX}/bin/$"