Skip to content

Commit 6ebb9a4

Browse files
committed
MSVC /permissive flag
1 parent 00eda9c commit 6ebb9a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
88

9+
if (MSVC)
10+
# For MSVC to get things like "or", "and", ...
11+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-")
12+
endif()
13+
914
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
1015

1116
# This ensures any link paths used at build time are preserved in

0 commit comments

Comments
 (0)