Skip to content

Commit b40325d

Browse files
author
Sean L
committed
Don't use C++11/14 flags when compiling with MSVC
1 parent a6d4652 commit b40325d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ if(WITH_STATIC)
2424
endif()
2525
add_library(docopt SHARED ${DOCOPT_SRC})
2626

27-
if(WITH_CPP14)
28-
add_definitions("-std=c++14")
29-
elseif(WITH_CPP11)
30-
add_definitions("-std=c++11")
27+
if (NOT MSVC)
28+
if(WITH_CPP14)
29+
add_definitions("-std=c++14")
30+
elseif(WITH_CPP11)
31+
add_definitions("-std=c++11")
32+
endif()
3133
endif()
3234

3335
########################################################################

0 commit comments

Comments
 (0)