From 477a6e1d0385f28117f1be23320841672e922c63 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 27 Mar 2020 14:10:11 -0400 Subject: Fix compiler warnings not triggering --- lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 3ec0f68..fd5c905 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -44,9 +44,9 @@ if (LINUX) endif() if(MSVC) - target_compile_options(libspm PRIVATE /W4 /WX) + target_compile_options(libspm PUBLIC /W4 /WX) else() - target_compile_options(libspm PRIVATE -Wall -Wextra -fstack-protector) + target_compile_options(libspm PUBLIC -Wall -Wextra -fstack-protector) endif() set_target_properties(libspm PROPERTIES OUTPUT_NAME "spm") -- cgit