From ef5561672c49d792b62fda1bef0c82cffc0d969a Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 5 Dec 2017 23:06:06 +0100 Subject: [PATCH] Corrected add_definitions to add_compile_options --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)