Commit 5c29c742 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

fixed python linking error due to changes for CMake 3.0.0

parent 94e66e03
......@@ -132,7 +132,7 @@ if(XDMF_WRAP_PYTHON)
if(WIN32)
if(NOT MSVC10)
set_target_properties(${SWIG_MODULE_${python_name}_REAL_NAME}
set_target_properties(${SWIG_MODULE_${python_name}Python_REAL_NAME}
PROPERTIES
PREFIX ../
IMPORT_PREFIX ../
......@@ -142,6 +142,11 @@ if(XDMF_WRAP_PYTHON)
endif(NOT MSVC10)
endif(WIN32)
set_target_properties(${SWIG_MODULE_${python_name}Python_REAL_NAME}
PROPERTIES
OUTPUT_NAME "_${python_name}")
string(TOUPPER ${python_name} python_name_upper)
set(${python_name_upper}_PYTHON
${CMAKE_INSTALL_PREFIX}/lib/python/${python_name}.py)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment