diff --git a/CMakeLists.txt b/CMakeLists.txt index 313801200..473f1821d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,6 +290,15 @@ endif() set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") +if(APPLE) + # For Xcode set the output directory to be the same for all configurations + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/lib") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/bin") + + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/lib") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/bin") +endif() + if(ENABLE_GL) add_definitions(-DRENDERDOC_SUPPORT_GL) endif()