diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aeaf66..5501645 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,9 +24,9 @@ endif() # temporarily disable these warnings: Only can be included directly. if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - add_definitions(-Wno-cpp) + add_compile_options(-Wno-cpp) elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_definitions("-Wno-#warnings") + add_compile_options("-Wno-#warnings") endif() if(APPLE)