Skip to content

Commit eb634ef

Browse files
uilianriesvitalybuka
authored andcommitted
Keep C++ standard flexible
Signed-off-by: Uilian Ries <[email protected]>
1 parent 1f95f80 commit eb634ef

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ include_directories(${LIBLZMA_INCLUDE_DIRS})
4242
find_package(ZLIB)
4343
include_directories(${ZLIB_INCLUDE_DIRS})
4444

45-
set(CMAKE_CXX_STANDARD 14)
46-
set(CMAKE_CXX_STANDARD_REQUIRED ON)
47-
set(CMAKE_CXX_EXTENSIONS OFF)
48-
4945
include_directories(${PROJECT_SOURCE_DIR})
5046

5147
if (MSVC)

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ target_link_libraries(protobuf-mutator
2424
set_target_properties(protobuf-mutator PROPERTIES
2525
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
2626
SOVERSION 0)
27+
target_compile_features(protobuf-mutator PRIVATE cxx_std_14)
2728

2829
if (LIB_PROTO_MUTATOR_TESTING)
2930
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS

src/libfuzzer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ target_link_libraries(protobuf-mutator-libfuzzer
2121
set_target_properties(protobuf-mutator-libfuzzer PROPERTIES
2222
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
2323
SOVERSION 0)
24+
target_compile_features(protobuf-mutator-libfuzzer PRIVATE cxx_std_14)
2425

2526
install(TARGETS protobuf-mutator-libfuzzer
2627
EXPORT libprotobuf-mutatorTargets

0 commit comments

Comments
 (0)