Add bash and python to make packages calls (#2193)

This commit is contained in:
Teddy Reed 2016-06-27 16:19:08 -07:00 committed by GitHub
parent 72df044ef5
commit 3472b7cc32

View File

@ -2,8 +2,8 @@
if(APPLE)
add_custom_target(
packages
COMMAND "${CMAKE_SOURCE_DIR}/tools/deployment/make_osx_package.sh"
COMMAND "${CMAKE_SOURCE_DIR}/tools/codegen/genapi.py" "${CMAKE_SOURCE_DIR}"
COMMAND bash "${CMAKE_SOURCE_DIR}/tools/deployment/make_osx_package.sh"
COMMAND python "${CMAKE_SOURCE_DIR}/tools/codegen/genapi.py" "${CMAKE_SOURCE_DIR}"
"--output" "--directory" "${CMAKE_BINARY_DIR}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Building default OS X package (no custom config)" VERBATIM
@ -143,10 +143,10 @@ elseif(LINUX)
add_custom_target(
packages
COMMAND "${CMAKE_SOURCE_DIR}/tools/deployment/make_linux_package.sh"
COMMAND bash "${CMAKE_SOURCE_DIR}/tools/deployment/make_linux_package.sh"
-t ${PACKAGE_TYPE} -i "${PACKAGE_ITERATION}"
-d "${PACKAGE_DEPENDENCIES}"
COMMAND "${CMAKE_SOURCE_DIR}/tools/codegen/genapi.py" "${CMAKE_SOURCE_DIR}"
COMMAND python "${CMAKE_SOURCE_DIR}/tools/codegen/genapi.py" "${CMAKE_SOURCE_DIR}"
"--output" "--directory" "${CMAKE_BINARY_DIR}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Building linux packages (no custom config)" VERBATIM