From f47a70130f23dc27fe978e4eb3bfcc6b4948c693 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 2 Jan 2020 18:36:35 +0100 Subject: [PATCH] Enable correct warnings for CMake tests --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index af5f79b..af17246 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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})