Skip to content

Commit a2fe238

Browse files
committed
Use “MATCHES” instead of “STREQUAL” to avoid ambiguous comparison.
NOTE: Unlike STREQUAL this comparison is supported pre and post CMake v3.1.0
1 parent bb49539 commit a2fe238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ option(UTPP_AMPLIFY_WARNINGS
1111
"Set this to OFF if you wish to use CMake default warning levels; should generally only use to work around support issues for your specific compiler"
1212
ON)
1313

14-
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
14+
if(${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
1515
# CHECK_CXX_COMPILER_FLAG could be used
1616
# but MSVC version is preferred for feature requirements
1717
if (MSVC14 OR MSVC12)

0 commit comments

Comments
 (0)