From 57ff88af6ced54bd23b179299feb5071bcfc908d Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 3 Sep 2024 22:01:10 +0300 Subject: [PATCH] fixed wrong definitions --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a2ae73..3a11eaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,9 +17,9 @@ if(BUILD_TESTS) endif () if (WIN32 AND THREAT_WARNING_AS_ERROR) - target_compile_definitions(omath PRIVATE /W4 /WX) + target_compile_options(omath PRIVATE /W4 /WX) elseif(UNIX AND THREAT_WARNING_AS_ERROR) - target_compile_definitions(omath PRIVATE -Wall -Wextra -Wpedantic) + target_compile_options(omath PRIVATE -Wall -Wextra -Wpedantic) endif() target_include_directories(omath PUBLIC include) \ No newline at end of file