2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-21 15:12:30 +00:00

Enable correct warnings for CMake tests

This commit is contained in:
Alexander Grund
2020-01-02 18:36:35 +01:00
parent 956ecbf6d1
commit f47a70130f

View File

@@ -7,7 +7,7 @@ function(boost_nowide_add_test name)
add_executable(${name} ${ARG_SRC})
target_link_libraries(${name} PRIVATE Boost::nowide ${ARG_LIBRARIES})
boost_add_warnings(boost_nowide pedantic ${BOOST_NOWIDE_WERROR})
boost_add_warnings(${name} pedantic ${BOOST_NOWIDE_WERROR})
target_compile_definitions(${name} PRIVATE BOOST_ALL_NO_LIB ${ARG_DEFINITIONS})
if(NOT ARG_COMPILE_ONLY)
add_test(NAME ${name} COMMAND ${name} ${ARG_ARGS})