Fix UnitTests using C++17 (now uses C++11)
This commit is contained in:
parent
ece17e1aca
commit
58493ee936
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
src/test/TestUDPC.cpp
|
src/test/TestUDPC.cpp
|
||||||
)
|
)
|
||||||
add_executable(UnitTest ${UDPC_UnitTest_SOURCES})
|
add_executable(UnitTest ${UDPC_UnitTest_SOURCES})
|
||||||
target_compile_features(UnitTest PUBLIC cxx_std_17)
|
target_compile_features(UnitTest PUBLIC cxx_std_11)
|
||||||
target_link_libraries(UnitTest PUBLIC UDPConnection ${GTEST_BOTH_LIBRARIES})
|
target_link_libraries(UnitTest PUBLIC UDPConnection ${GTEST_BOTH_LIBRARIES})
|
||||||
target_include_directories(UnitTest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
target_include_directories(UnitTest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue