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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy