Commit 621c8b0a authored by David Partyka's avatar David Partyka
Browse files

Make XDMF_WRAP_PYTHON_INSTALL_DIR externally setable.

Also add components to _Xdmf install rule.
parent e554c9a0
......@@ -469,11 +469,13 @@ IF(XDMF_WRAP_PYTHON)
ENDIF(WIN32 OR APPLE)
# Get the install path for python modules
EXEC_PROGRAM("${PYTHON_EXECUTABLE}" "${Xdmf_SOURCE_DIR}/CMake/"
ARGS "setup_install_paths.py" "purelib" --prefix=""
OUTPUT_VARIABLE XDMF_WRAP_PYTHON_INSTALL_DIR)
if(NOT XDMF_WRAP_PYTHON_INSTALL_DIR)
EXEC_PROGRAM("${PYTHON_EXECUTABLE}" "${Xdmf_SOURCE_DIR}/CMake/"
ARGS "setup_install_paths.py" "purelib" --prefix=""
OUTPUT_VARIABLE XDMF_WRAP_PYTHON_INSTALL_DIR)
SET(XDMF_WRAP_PYTHON_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}${XDMF_WRAP_PYTHON_INSTALL_DIR}/Xdmf)
SET(XDMF_WRAP_PYTHON_INSTALL_DIR ${XDMF_WRAP_PYTHON_INSTALL_DIR}/Xdmf)
endif()
# Replace backslashes with forward slashes
IF(WIN32)
......@@ -591,10 +593,9 @@ IF(NOT XDMF_INSTALL_NO_LIBRARIES)
LIBRARY DESTINATION ${XDMF_INSTALL_LIB_DIR_CM24} COMPONENT Runtime
ARCHIVE DESTINATION ${XDMF_INSTALL_LIB_DIR_CM24} COMPONENT Development)
IF(XDMF_WRAP_PYTHON)
INSTALL(
TARGETS _Xdmf
DESTINATION
${XDMF_WRAP_PYTHON_INSTALL_DIR})
INSTALL(TARGETS _Xdmf
RUNTIME DESTINATION ${XDMF_WRAP_PYTHON_INSTALL_DIR} COMPONENT Runtime
LIBRARY DESTINATION ${XDMF_WRAP_PYTHON_INSTALL_DIR} COMPONENT Runtime)
ENDIF(XDMF_WRAP_PYTHON)
ENDIF(NOT XDMF_INSTALL_NO_LIBRARIES)
......
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