Skip to content
Permalink
Browse files

Only add build type to path for Windows

  • Loading branch information...
geographika committed Aug 21, 2018
1 parent d22d57e commit b17ad6103a60edcd1135db38ee1b3ad7a2e255d5
Showing with 6 additions and 1 deletion.
  1. +6 −1 mapscript/python/CMakeLists.txt
@@ -62,7 +62,12 @@ add_custom_target(pythonmapscript-wheel DEPENDS ${SWIG_MODULE_pythonmapscript_RE
# copy all Python files to the output folder following build, and create a wheel
add_custom_command(
TARGET pythonmapscript-wheel POST_BUILD
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}
if (WIN32)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}
else()
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
endif()

COMMAND ${PYTHON_EXECUTABLE} -m pip install -r ${PROJECT_SOURCE_DIR}/mapscript/python/requirements-dev.txt
COMMAND ${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/mapscript/python/mapscript" $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>/mapscript
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/mapscript.py" $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>/mapscript/mapscript.py

0 comments on commit b17ad61

Please sign in to comment.
You can’t perform that action at this time.