From db7e060c968aff79192501025e252012c842433f Mon Sep 17 00:00:00 2001 From: Eduardo Menges Mattje Date: Thu, 15 Aug 2024 16:28:22 -0300 Subject: [PATCH] Fixed Darwin compiling --- cmake/CommonBuildParameters.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}")