Skip to content

Commit

Permalink
Merge pull request #1114 from UV-CDAT/missing_vacumm_files
Browse files Browse the repository at this point in the history
Added files
  • Loading branch information
doutriaux1 committed Mar 5, 2015
2 parents 6451f1b + 5d0a39d commit 5008aaf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CMake/cdat_modules/vacumm_external.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# vacumm
#
set(vacumm_source_dir "${CMAKE_CURRENT_BINARY_DIR}/build/vacumm")

configure_file(
"${cdat_CMAKE_SOURCE_DIR}/cdat_modules_extra/vacumm_build_step.cmake.in"
"${cdat_CMAKE_BINARY_DIR}/vacumm_build_step.cmake"
@ONLY
)

set(vacumm_build_command ${CMAKE_COMMAND} -P ${cdat_CMAKE_BINARY_DIR}/vacumm_build_step.cmake)

ExternalProject_Add(vacumm
DOWNLOAD_DIR ${CDAT_PACKAGE_CACHE_DIR}
SOURCE_DIR ${vacumm_source_dir}
URL ${VACUMM_URL}/${VACUMM_GZ}
URL_MD5 ${VACUMM_MD5}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ${vacumm_build_command}
INSTALL_COMMAND ""
DEPENDS ${vacumm_deps}
${ep_log_options}
)
6 changes: 6 additions & 0 deletions CMake/cdat_modules_extra/vacumm_build_step.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include(@cdat_CMAKE_BINARY_DIR@/cdat_common_environment.cmake)

execute_process(
COMMAND "@PYTHON_EXECUTABLE@" setup.py install @PYTHON_EXTRA_PREFIX@
WORKING_DIRECTORY "@vacumm_source_dir@"
)

0 comments on commit 5008aaf

Please sign in to comment.