Skip to content
Permalink
Browse files

Fix pyfuture installation under CMake 3.12

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 2a1459cb99827cade4e6f8525df2e4c93b941063
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/ext-libs/CMakeLists.txt
@@ -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}")

0 comments on commit 2a1459c

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