Skip to content

Commit

Permalink
Fix pyfuture installation under CMake 3.12
Browse files Browse the repository at this point in the history
The logic here was incorrect, but managed to do the right thing
anyway. Under CMake 3.12, this is a hard error.
  • Loading branch information
thefloweringash authored and nyalldawson committed Sep 4, 2018
1 parent 25b3fca commit 2a1459c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ext-libs/CMakeLists.txt
Expand Up @@ -49,8 +49,8 @@ IF(NOT ENABLE_PYTHON3)
FILE(GLOB_RECURSE files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/future future/*)
ADD_CUSTOM_COMMAND(TARGET pyfuture
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${item} "${PYTHON_OUTPUT_DIRECTORY}/"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${item} "${PYTHON_OUTPUT_DIRECTORY}/${item}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/future
DEPENDS ${files}
)
PY_COMPILE(pyfuture "${PYTHON_OUTPUT_DIRECTORY}/${item}")
Expand Down

0 comments on commit 2a1459c

Please sign in to comment.