Commit e50b691 1 parent 6cc30b5 commit e50b691 Copy full SHA for e50b691
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ endif()
41
41
42
42
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
43
43
# using Clang
44
- if (CMAKE_BUILD_TYPE MATCHES "^ Release$ " )
44
+ if (CMAKE_BUILD_TYPE STREQUAL " Release" )
45
45
set (CMAKE_C_FLAGS "-static -O3 -Wall -pedantic" )
46
46
set (CMAKE_CXX_FLAGS "-static -O3 -Wall -pedantic" )
47
47
else ()
@@ -50,14 +50,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
50
50
endif ()
51
51
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
52
52
# using GCC
53
- if (CMAKE_BUILD_TYPE MATCHES "^ Release$ " )
53
+ if (CMAKE_BUILD_TYPE STREQUAL " Release" )
54
54
set (CMAKE_C_FLAGS "-s -static -O3 -Wall -pedantic" )
55
55
set (CMAKE_CXX_FLAGS "-s -static -O3 -Wall -pedantic" )
56
56
else ()
57
57
set (CMAKE_C_FLAGS "-static -g -Wall -pedantic" )
58
58
set (CMAKE_CXX_FLAGS "-static -g -Wall -pedantic" )
59
59
endif ()
60
- elseif (MSVC AND (CMAKE_BUILD_TYPE MATCHES "^ Release$ " ))
60
+ elseif (MSVC AND (CMAKE_BUILD_TYPE STREQUAL " Release" ))
61
61
# replace "/MD" with "/MT" (building without runtime DLLs)
62
62
set (CompilerFlags
63
63
CMAKE_C_FLAGS
You can’t perform that action at this time.
0 commit comments