aboutsummaryrefslogtreecommitdiff
path: root/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake')
-rw-r--r--PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake25
1 files changed, 5 insertions, 20 deletions
diff --git a/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake b/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
index f517efc..ea39cdb 100644
--- a/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
+++ b/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
@@ -12,27 +12,12 @@ SET(PXPVDSDK_LIBTYPE STATIC)
SET(PXPVDSDK_COMPILE_DEFS
# Common to all configurations
${PXSHARED_ANDROID_COMPILE_DEFS};PxShared_STATIC_LIB;
-)
-if(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
- LIST(APPEND PXPVDSDK_COMPILE_DEFS
- ${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "checked")
- LIST(APPEND PXPVDSDK_COMPILE_DEFS
- ${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "profile")
- LIST(APPEND PXPVDSDK_COMPILE_DEFS
- ${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS}
- )
-elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL release)
- LIST(APPEND PXPVDSDK_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 PxPvdSDK common
INCLUDE(../common/PxPvdSDK.cmake)