Browse Source

Corrected add_definitions to add_compile_options

merge-requests/365/head
eidheim 8 years ago
parent
commit
ef5561672c
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -24,9 +24,9 @@ endif()
# temporarily disable these warnings: Only <gtksourceview/gtksource.h> can be included directly. # temporarily disable these warnings: Only <gtksourceview/gtksource.h> can be included directly.
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_definitions(-Wno-cpp) add_compile_options(-Wno-cpp)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_definitions("-Wno-#warnings") add_compile_options("-Wno-#warnings")
endif() endif()
if(APPLE) if(APPLE)

Loading…
Cancel
Save