mirror of
https://github.com/nlohmann/json
synced 2024-11-30 07:30:06 +00:00
reverted the removal of this if/else branching - this is the easiest way to get -std=c++0x support
This commit is contained in:
parent
ff51a32be1
commit
0caf986505
@ -65,7 +65,11 @@ set_target_properties(doctest_main PROPERTIES
|
||||
COMPILE_OPTIONS "$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>"
|
||||
)
|
||||
|
||||
target_compile_features(doctest_main PUBLIC cxx_std_11)
|
||||
if (${CMAKE_VERSION} VERSION_LESS "3.8.0")
|
||||
target_compile_features(doctest_main PUBLIC cxx_range_for)
|
||||
else()
|
||||
target_compile_features(doctest_main PUBLIC cxx_std_11)
|
||||
endif()
|
||||
target_include_directories(doctest_main PRIVATE "thirdparty/doctest")
|
||||
|
||||
# https://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake
|
||||
|
Loading…
Reference in New Issue
Block a user