From 03158aea6df4e40d9fba0758a815fe7c8cc1f69c Mon Sep 17 00:00:00 2001 From: Viktor Gal Date: Mon, 12 Feb 2018 09:26:27 +0100 Subject: [PATCH] drop no-c++11-narrowing compiler flag as we require SWIG 3.0 or later --- src/interfaces/python/CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/interfaces/python/CMakeLists.txt b/src/interfaces/python/CMakeLists.txt index 74058014ac2..ebee08be5ff 100644 --- a/src/interfaces/python/CMakeLists.txt +++ b/src/interfaces/python/CMakeLists.txt @@ -26,13 +26,6 @@ ENDIF ((NOT "${PYTHON_VERSION_STRING}" VERSION_LESS "3.5") AND include(ShogunInterfaces) include_directories(${PYTHON_INCLUDE_PATH} ${NUMPY_INCLUDE_DIRS}) -#TODO: check for SWIG version where this bug has been applied already: -# https://github.com/swig/swig/pull/70 - -IF (NOT MSVC) - SET(SWIG_CXX_COMPILER_FLAGS "${SWIG_CXX_COMPILER_FLAGS} -Wno-c++11-narrowing") -ENDIF() - EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig; print(sysconfig.get_config_var('LDSHARED'))" RESULT_VARIABLE PYTHON_CVPY_PROCESS OUTPUT_VARIABLE PYTHON_LDSHARED