Skip to content

Commit

Permalink
Only set cmake output dir for Xcode
Browse files Browse the repository at this point in the history
Surround the setting of CMAKE_LIBRARY_OUTPUT_DIRECTORY with
a check for Xcode

refs #7284
  • Loading branch information
stuartcampbell committed Apr 11, 2014
1 parent 979b6c3 commit 9c2b8ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Expand Up @@ -105,8 +105,11 @@ create_module ( ${MODULE_TEMPLATE} ${CMAKE_CURRENT_BINARY_DIR}/api.cpp EXPORT_FI
#############################################################################################
# Set the destination directory
set ( OUTPUT_DIR ${PYTHON_PKG_ROOT}/api )
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/api )

if(CMAKE_GENERATOR STREQUAL Xcode)
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/api )
endif()

copy_python_files_to_dir ( "${PY_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ${OUTPUT_DIR}
PYTHON_INSTALL_FILES )
Expand Down
Expand Up @@ -45,9 +45,11 @@ create_module ( ${MODULE_TEMPLATE} ${CMAKE_CURRENT_BINARY_DIR}/geometry.cpp EXPO
#############################################################################################
# Set the destination directory
set ( OUTPUT_DIR ${PYTHON_PKG_ROOT}/geometry )
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/geometry )

if(CMAKE_GENERATOR STREQUAL Xcode)
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/geometry )
endif()

copy_python_files_to_dir ( "${PY_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ${OUTPUT_DIR}
PYTHON_INSTALL_FILES )
Expand Down
Expand Up @@ -116,8 +116,11 @@ create_module ( ${MODULE_TEMPLATE} ${CMAKE_CURRENT_BINARY_DIR}/kernel.cpp EXPORT
# Add rule to copy over the pure Python files for the module
#############################################################################################
set ( OUTPUT_DIR ${PYTHON_PKG_ROOT}/kernel )
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/kernel )

if(CMAKE_GENERATOR STREQUAL Xcode)
# Set the output directory for the libraries.
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_PKG_ROOT}/kernel )
endif()

copy_python_files_to_dir ( "${PY_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ${OUTPUT_DIR}
PYTHON_INSTALL_FILES )
Expand Down

0 comments on commit 9c2b8ea

Please sign in to comment.