Skip to content

Commit

Permalink
mapscript/python/CMakeLists.txt: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 11, 2022
1 parent 5e6a42f commit 2f52ef4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mapscript/python/CMakeLists.txt
Expand Up @@ -60,7 +60,7 @@ add_custom_target(
)

add_custom_command(
DEPENDS ${SWIG_MODULE_pythonmapscript_REAL_NAME}
DEPENDS ${SWIG_MODULE_pythonmapscript_REAL_NAME} pythonmapscript_copyfiles
OUTPUT mapscriptvenv.stamp
WORKING_DIRECTORY ${OUTPUT_FOLDER}
COMMAND ${Python_EXECUTABLE} -m pip install pip --upgrade
Expand Down Expand Up @@ -114,12 +114,11 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/tests" $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>/mapscript/tests/data
COMMAND ${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/mapscript/python/examples" $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>/mapscript/examples
COMMENT "Copying files required to build Mapscript"
DEPENDS _pythonmapscript
)

# handle CMake CMP0040 policy error
add_custom_target(
_pythonmapscript
pythonmapscript_copyfiles
DEPENDS mapscriptcopyfiles.stamp
)

Expand Down

1 comment on commit 2f52ef4

@szekerest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rouault I've got an error when building the mapscript bdist packages at gisinternals as of this commit. Looks like the step "Copying files required to build Mapscript" is not being executed anymore.
https://www.gisinternals.com/status.php

Please sign in to comment.