diff --git a/cmake/CommonBuildParameters.cmake b/cmake/CommonBuildParameters.cmake index 88dbe54..e1ec314 100644 --- a/cmake/CommonBuildParameters.cmake +++ b/cmake/CommonBuildParameters.cmake @@ -371,7 +371,11 @@ if(NOT DEFINED SUPERGENIUS_SRC_DIR) endif() endif() -set(SUPERGENIUS_BUILD_DIR "${SUPERGENIUS_SRC_DIR}/build/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}") +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set(SUPERGENIUS_BUILD_DIR "${SUPERGENIUS_SRC_DIR}/build/OSX/${CMAKE_BUILD_TYPE}") +else() + set(SUPERGENIUS_BUILD_DIR "${SUPERGENIUS_SRC_DIR}/build/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}") +endif() if(DEFINED ANDROID_ABI) set(SUPERGENIUS_BUILD_DIR "${SUPERGENIUS_BUILD_DIR}/${ANDROID_ABI}")