Skip to content

Commit

Permalink
for gcc8
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Aug 21, 2024
1 parent b9ecdf0 commit ea4ead5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,16 @@ add_executable(yaml_benchmark ${YAMLBENCH})
add_executable(test_nothrow ${TEST_NOTHROW})
add_executable(test_util ${TEST_UTIL})
add_executable(test_pb ${TEST_PB})
add_executable(test_reflection test/test_reflection.cpp)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8)
message(STATUS "GCC version ${CMAKE_CXX_COMPILER_VERSION}")
add_executable(test_reflection test/test_reflection.cpp)
endif()
else()
add_executable(test_reflection test/test_reflection.cpp)
endif()


find_package(Protobuf QUIET)
if(Protobuf_FOUND)
Expand Down

0 comments on commit ea4ead5

Please sign in to comment.