summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-07 02:41:35 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-07 02:41:35 +0200
commit37f652206b580e2f174f3e49753b2f702e9c932a (patch)
tree66141736f6933da0d1a48312d83121b3574040c3 /indra
parent6cb984022afb54bb8ff71ee36787883edd3468cf (diff)
Using Ninja leads to subtly different path than using a multi config generate like
xcode or visual studio.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/Linking.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/cmake/Linking.cmake b/indra/cmake/Linking.cmake
index 3cb235a9d5..d3e82f8c3a 100644
--- a/indra/cmake/Linking.cmake
+++ b/indra/cmake/Linking.cmake
@@ -18,6 +18,11 @@ elseif (LINUX)
elseif (DARWIN)
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs")
+ if( ${CMAKE_GENERATOR} STREQUAL "Ninja")
+ set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs/${CMAKE_BUILD_TYPE} ")
+ else()
+ set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs")
+ endif()
endif (WINDOWS)
# Autobuild packages must provide 'release' versions of libraries, but may provide versions for
@@ -30,7 +35,13 @@ endif (WINDOWS)
if(WINDOWS OR DARWIN)
# the cmake xcode and VS generators implicitly append ${CMAKE_CFG_INTDIR} to the library paths for us
# fortunately both windows and darwin are case insensitive filesystems so this works.
- set(AUTOBUILD_LIBS_INSTALL_DIRS "${AUTOBUILD_INSTALL_DIR}/lib/")
+ # Ninja on the other hand needs the the full path
+ if( ${CMAKE_GENERATOR} STREQUAL "Ninja")
+ string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
+ set(AUTOBUILD_LIBS_INSTALL_DIRS ${AUTOBUILD_INSTALL_DIR}/lib/${CMAKE_BUILD_TYPE_LOWER})
+ else()
+ set(AUTOBUILD_LIBS_INSTALL_DIRS "${AUTOBUILD_INSTALL_DIR}/lib/")
+ endif()
else(WINDOWS OR DARWIN)
# else block is for linux and any other makefile based generators
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)