mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 03:42:27 +02:00
handle MinSizeRel configuration in vhacd external
This commit is contained in:
parent
0367f70a39
commit
6d38b1fe72
1 changed files with 6 additions and 2 deletions
8
cmake/externals/vhacd/CMakeLists.txt
vendored
8
cmake/externals/vhacd/CMakeLists.txt
vendored
|
@ -26,8 +26,12 @@ string(TOUPPER ${EXTERNAL_NAME} EXTERNAL_NAME_UPPER)
|
|||
if (WIN32)
|
||||
set(${EXTERNAL_NAME_UPPER}_LIBRARY_DEBUG ${INSTALL_DIR}/lib/Debug/VHACD_LIB.lib CACHE FILEPATH "Path to V-HACD debug library")
|
||||
|
||||
# use generator expression to ensure the library is found when building RelWithDebInfo in VS
|
||||
set(_LIB_FOLDER "$<$<CONFIG:RelWithDebInfo>:build/src/VHACD_Lib/RelWithDebInfo>$<$<NOT:$<CONFIG:RelWithDebInfo>>:lib/Release>")
|
||||
# use generator expression to ensure the correct library is found when building different configurations in VS
|
||||
set(_LIB_FOLDER """
|
||||
$<$<CONFIG:RelWithDebInfo>:build/src/VHACD_Lib/RelWithDebInfo>
|
||||
$<$<CONFIG:MinSizeRel>:build/src/VHACD_Lib/MinSizeRel>
|
||||
$<$<OR:$<CONFIG:Release>,$<CONFIG:Debug>>:lib/Release>
|
||||
""")
|
||||
|
||||
set(${EXTERNAL_NAME_UPPER}_LIBRARY_RELEASE ${INSTALL_DIR}/${_LIB_FOLDER}/VHACD_LIB.lib CACHE FILEPATH "Path to V-HACD release library")
|
||||
else ()
|
||||
|
|
Loading…
Reference in a new issue