swig python: build with CMAKE_CXX_FLAGS, not CMAKE_C_FLAGS

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson 2016-10-21 16:15:49 -06:00
parent ec36a8f519
commit 3cec185d91

View File

@ -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