OSX/cmake: don´t build target extractpyzip for MODULE

This commit is contained in:
Jens Verwiebe
2012-01-17 13:11:53 +00:00
parent 7a85ad51bf
commit f3e39fc8c9

View File

@@ -629,10 +629,11 @@ elseif(APPLE)
)
# python
if(WITH_PYTHON)
if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE)
# the python zip is first extract as part of the build process,
# and then later installed as part of make install. this is much
# quicker, and means we can easily exclude files on copy
# Not needed for PYTHON_MODULE or WEB_PLUGIN due uses Pyhon framework
add_custom_target(
extractpyzip
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/python)