8000 Merge pull request #33 from LogicalKnight/msvc-cmake-c++11-fix · rmpowell77/docopt.cpp@af1e5c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit af1e5c8

Browse files
committed
Merge pull request docopt#33 from LogicalKnight/msvc-cmake-c++11-fix
Don't use C++11/14 flags when compiling with MSVC
2 parents a6d4652 + b40325d commit af1e5c8

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)
0