Fix UnitTests using C++17 (now uses C++11)

This commit is contained in:
Stephen Seo 2019-12-11 21:24:28 +09:00
parent ece17e1aca
commit 58493ee936

View file

@ -60,7 +60,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
src/test/TestUDPC.cpp
)
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_include_directories(UnitTest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
endif()