Commit cccc07f2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Tried to get rid of the fixbundle calls

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15983 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6940fe56
......@@ -228,7 +228,9 @@ if (APPLE AND OPENFLIPPER_CALL_FIX_BUNDLE)
# prepare bundle generation cmake file and add a build target for it
configure_file ("${CMAKE_SOURCE_DIR}/OpenFlipper/cmake/fixbundle.cmake.in"
"${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE)
add_custom_target (fixbundle ALL
# Don't call every time! add_custom_target (fixbundle ALL
add_custom_target (fixbundle
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.cmake"
)
# let bundle generation depend on all targets
......
......@@ -262,6 +262,13 @@ if (NOT WIN32 AND NOT APPLE)
file (REMOVE "${CMAKE_BINARY_DIR}/CPackConfig.cmake")
endif ()
#Add dependency to fixbundle on APPLE when creating the package
if ( APPLE )
add_dependencies(package fixbundle)
endif()
# cmake doesn't create a source package target, so we have to add our own
if (EXISTS "${CMAKE_BINARY_DIR}/CPackSourceConfig.cmake")
add_custom_target (PACKAGE_SOURCE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment