Skip to content

Commit 0fc1076

Browse files
committed
cmake: fix compile options for Windows
1 parent f524b49 commit 0fc1076

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ endif()
8282
if(MSVC)
8383
# add_definitions(-D_USE_MATH_DEFINES)
8484
add_definitions(-DNOMINMAX)
85-
add_compile_options(/permissive-)
8685
endif()
8786

8887
# Look for dependencies
@@ -99,6 +98,9 @@ endif()
9998
file(GLOB_RECURSE ${PROJECT_NAME}_HEADERS ${PROJECT_SOURCE_DIR}/include/*.hpp)
10099

101100
add_library(proxsuite INTERFACE)
101+
if(MSVC)
102+
target_compile_options(proxsuite INTERFACE /permissive-)
103+
endif(MSVC)
102104
target_link_libraries(
103105
proxsuite
104106
PUBLIC

0 commit comments

Comments
 (0)