aboutsummaryrefslogtreecommitdiff
path: root/PxShared/src/compiler/cmake/Android/PxFoundation.cmake
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-10-20 14:30:56 +0200
committerMarijn Tamis <[email protected]>2017-10-20 14:36:12 +0200
commitfabb251458f4a2d6d4f87dd36038fac2774b378c (patch)
tree68a4a0ecd940dc949e0477d521d8c159968cfcd5 /PxShared/src/compiler/cmake/Android/PxFoundation.cmake
parentNvCloth 1.1.2 Release. (22576033) (diff)
downloadnvcloth-1.1.3.tar.xz
nvcloth-1.1.3.zip
NvCloth 1.1.3 Release. (23014067)v1.1.3
Diffstat (limited to 'PxShared/src/compiler/cmake/Android/PxFoundation.cmake')
-rw-r--r--PxShared/src/compiler/cmake/Android/PxFoundation.cmake26
1 files changed, 5 insertions, 21 deletions
diff --git a/PxShared/src/compiler/cmake/Android/PxFoundation.cmake b/PxShared/src/compiler/cmake/Android/PxFoundation.cmake
index c23a327..d069e41 100644
--- a/PxShared/src/compiler/cmake/Android/PxFoundation.cmake
+++ b/PxShared/src/compiler/cmake/Android/PxFoundation.cmake
@@ -30,28 +30,12 @@ SET(PXFOUNDATION_PLATFORM_INCLUDES
SET(PXFOUNDATION_COMPILE_DEFS
# Common to all configurations
${PXSHARED_ANDROID_COMPILE_DEFS};PxShared_STATIC_LIB;
-)
-
-if(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
- LIST(APPEND PXFOUNDATION_COMPILE_DEFS
- ${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "checked")
- LIST(APPEND PXFOUNDATION_COMPILE_DEFS
- ${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "profile")
- LIST(APPEND PXFOUNDATION_COMPILE_DEFS
- ${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL release)
- LIST(APPEND PXFOUNDATION_COMPILE_DEFS
- ${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS}
- )
-else(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
- MESSAGE(FATAL_ERROR "Unknown configuration ${CMAKE_BUILD_TYPE}")
-endif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
+ $<$<CONFIG:debug>:${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS};>
+ $<$<CONFIG:checked>:${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS};>
+ $<$<CONFIG:profile>:${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS};>
+ $<$<CONFIG:release>:${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS};>
+)
# include PxFoundation common
INCLUDE(../common/PxFoundation.cmake)