From 3cec185d916682241f7ca10656101da8d2388401 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 21 Oct 2016 16:15:49 -0600 Subject: [PATCH] swig python: build with CMAKE_CXX_FLAGS, not CMAKE_C_FLAGS Signed-off-by: Jon Trulson --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 10eef2bb..1ee2b95e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -96,7 +96,7 @@ macro(_upm_swig_python) # Python collateral names will be the same for python2/3 w/different library dirs set_target_properties (${python_wrapper_target} PROPERTIES OUTPUT_NAME _pyupm_${libname} - COMPILE_FLAGS "${CMAKE_C_FLAGS}" + COMPILE_FLAGS "${CMAKE_CXX_FLAGS}" LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_PYTHON_BINARY_DIR}) # Install .py's to python packages directory/upm