Skip to content

Commit

Permalink
Don't export the -std=c++11 flag from the fmt target
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWF authored and vitaut committed Dec 30, 2016
1 parent 02553d1 commit b9aaa50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ if (FMT_CPPFORMAT)
endif ()

# Starting with cmake 3.1 the CXX_STANDARD property can be used instead.
target_compile_options(fmt PUBLIC ${CPP11_FLAG})
# Note: Don't make -std=c++11 public or interface, since it breaks projects
# that use C++14.
target_compile_options(fmt PRIVATE ${CPP11_FLAG})
if (FMT_PEDANTIC)
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
endif ()
Expand Down

0 comments on commit b9aaa50

Please sign in to comment.