summaryrefslogtreecommitdiff
path: root/configureoptimization.cmake
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jekoritz@microsoft.com>2019-06-05 14:48:55 -0700
committerGitHub <noreply@github.com>2019-06-05 14:48:55 -0700
commit90dd13ee1bd497d7724c2b1d0fd833d42f7001ad (patch)
treeae6167d368f59598c6dd6c71e3280d1af0485f02 /configureoptimization.cmake
parentd7e49efa6b41afb2b7a9ee3adc8f0850b968562a (diff)
downloadcoreclr-90dd13ee1bd497d7724c2b1d0fd833d42f7001ad.tar.gz
coreclr-90dd13ee1bd497d7724c2b1d0fd833d42f7001ad.tar.bz2
coreclr-90dd13ee1bd497d7724c2b1d0fd833d42f7001ad.zip
Use Modern CMake features instead of CMAKE_CXX_FLAGS (#24861)
* Convert C++ standard settings and warning options from CMAKE_<LANG>_FLAGS to Modern CMake isms. * More $<COMPILE_LANGUAGE> generator expressions instead of CMAKE_CXX_FLAGS. * Use $<COMPILE_LANGUAGE:CXX> for all -fpermissive usage * Fix generator expression that generates multiple flags * Fix invalid use of CMAKE_CXX_FLAGS instead of CMAKE_C_FLAGS. * Treat AppleClang as though it is Clang (match pre-3.0 behavior). * Update our build system to understand that AppleClang is distinct from Clang and remove CMP0025 policy setting. * PR Feedback.
Diffstat (limited to 'configureoptimization.cmake')
-rw-r--r--configureoptimization.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/configureoptimization.cmake b/configureoptimization.cmake
index ad9f4a4907..dd26849a1b 100644
--- a/configureoptimization.cmake
+++ b/configureoptimization.cmake
@@ -6,7 +6,7 @@ if(WIN32)
elseif(CLR_CMAKE_PLATFORM_UNIX)
set(CLR_CMAKE_ARM_OPTIMIZATION_FALLBACK OFF)
if(CLR_CMAKE_TARGET_ARCH STREQUAL "arm" OR CLR_CMAKE_TARGET_ARCH STREQUAL "armel")
- if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.9))
+ if((CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.9))
set(CLR_CMAKE_ARM_OPTIMIZATION_FALLBACK ON)
endif()
endif()