diff options
-rw-r--r-- | cmake/scripts/common/ArchSetup.cmake | 11 | ||||
-rw-r--r-- | xbmc/interfaces/swig/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake index a59fcb52f7..a83d2ae198 100644 --- a/cmake/scripts/common/ArchSetup.cmake +++ b/cmake/scripts/common/ArchSetup.cmake @@ -167,17 +167,6 @@ if(NOT MSVC) -Wno-unused-parameter # from -Wextra ) - if(CMAKE_COMPILER_IS_GNUCXX) - add_options(ALL_LANGUAGES ALL_BUILDS - -Wno-cast-function-type # from -Wextra - ) - elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_options(ALL_LANGUAGES ALL_BUILDS - -Wno-bad-function-cast - -Wno-deprecated - ) - endif() - add_options(CXX ALL_BUILDS -Wnon-virtual-dtor ) diff --git a/xbmc/interfaces/swig/CMakeLists.txt b/xbmc/interfaces/swig/CMakeLists.txt index c8d590e2bb..b1748fd87a 100644 --- a/xbmc/interfaces/swig/CMakeLists.txt +++ b/xbmc/interfaces/swig/CMakeLists.txt @@ -63,3 +63,7 @@ add_dependencies(python_binding ${GLOBAL_TARGET_DEPS}) if(CORE_SYSTEM_NAME STREQUAL windowsstore) set_target_properties(python_binding PROPERTIES STATIC_LIBRARY_FLAGS "/ignore:4264") endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) + set_target_properties(python_binding PROPERTIES + COMPILE_FLAGS -Wno-cast-function-type) # from -Wextra +endif() |