Skip to content

Commit

Permalink
Keep C++ standard flexible
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries authored and vitalybuka committed Jun 15, 2024
1 parent 1f95f80 commit eb634ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ include_directories(${LIBLZMA_INCLUDE_DIRS})
find_package(ZLIB)
include_directories(${ZLIB_INCLUDE_DIRS})

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

include_directories(${PROJECT_SOURCE_DIR})

if (MSVC)
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ target_link_libraries(protobuf-mutator
set_target_properties(protobuf-mutator PROPERTIES
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
SOVERSION 0)
target_compile_features(protobuf-mutator PRIVATE cxx_std_14)

if (LIB_PROTO_MUTATOR_TESTING)
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS
Expand Down
1 change: 1 addition & 0 deletions src/libfuzzer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ target_link_libraries(protobuf-mutator-libfuzzer
set_target_properties(protobuf-mutator-libfuzzer PROPERTIES
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
SOVERSION 0)
target_compile_features(protobuf-mutator-libfuzzer PRIVATE cxx_std_14)

install(TARGETS protobuf-mutator-libfuzzer
EXPORT libprotobuf-mutatorTargets
Expand Down

0 comments on commit eb634ef

Please sign in to comment.