Merge pull request #1180 from davidgyu/dev_cmp0054_warning_fix

Fixed CMP0054 warnings in top-level CMakeLists.txt
This commit is contained in:
Pol 2020-02-24 15:11:03 -05:00 committed by GitHub
commit 6339ac5c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,9 +125,9 @@ if (CMAKE_COMPILER_IS_GNUCC)
endif()
# Detect Clang (until a cmake version provides built-in variables)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
set(CMAKE_COMPILER_IS_CLANGCC 1)
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Intel")
set(CMAKE_COMPILER_IS_ICC 1)
endif()