aboutsummaryrefslogtreecommitdiff
path: root/PxShared/src/compiler/cmake/Android/PxFoundation.cmake
diff options
context:
space:
mode:
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)