ENH: add make program stuff

This commit is contained in:
Bill Hoffman 2006-05-08 16:36:51 -04:00
parent 1d8043cb4f
commit 1b40075c9c
7 changed files with 22 additions and 10 deletions

View File

@ -1,6 +1,7 @@
set(PROCESSORS 2)
set(HOST dashmacmini2)
set(MAKE "make -j2")
set(MAKE_COMMAND "make")
set(MAKE "${MAKE_COMMAND} -j2")
set(INITIAL_CACHE "
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_OSX_ARCHITECTURES:STRING=ppc\;i386

View File

@ -2,7 +2,7 @@ set(PROCESSORS 1)
set(RUN_SHELL "/usr/local/bin/zsh -l")
set(CVS_COMMAND "/usr/local/bin/cvs")
set(HOST destiny)
set(MAKE "gmake")
set(MAKE_COMMAND "/usr/local/bin/gmake")
set(INITIAL_CACHE "CMAKE_BUILD_TYPE:STRING=Release
CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-a,archive_shared
CMAKE_C_FLAGS:STRING=+DAportable

View File

@ -1,6 +1,7 @@
set(PROCESSORS 2)
set(HOST hythloth)
set(MAKE "make -j2")
set(MAKE_COMMAND "make")
set(MAKE "${MAKE_COMMAND} -j2")
set(INITIAL_CACHE "
CMAKE_BUILD_TYPE:STRING=Release
")

View File

@ -1,6 +1,8 @@
set(CMAKE_RELEASE_DIRECTORY "/home/collab/itk/CMakeReleaseDirectory" )
set(PROCESSORS 20)
set(HOST muse)
set(MAKE "gmake -j20")
set(MAKE_COMMAND "gmake")
set(MAKE "${MAKE_COMMAND} -j20")
set(INITIAL_CACHE "CMAKE_BUILD_TYPE:STRING=Release")
get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${path}/release_cmake.cmake)

View File

@ -4,6 +4,12 @@ get_filename_component(SCRIPT_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
if(NOT DEFINED CMAKE_RELEASE_DIRECTORY)
set(CMAKE_RELEASE_DIRECTORY "~/CMakeReleaseDirectory")
endif(NOT DEFINED CMAKE_RELEASE_DIRECTORY)
if(NOT DEFINED MAKE_COMMAND)
message(FATAL_ERROR "MAKE_COMMAND must be set")
endif(NOT DEFINED MAKE_COMMAND)
if(NOT DEFINED MAKE)
set(MAKE "${MAKE_COMMAND}")
endif(NOT DEFINED MAKE)
if(NOT DEFINED RUN_SHELL)
set(RUN_SHELL "/bin/sh")
endif(NOT DEFINED RUN_SHELL)

View File

@ -62,16 +62,18 @@ echo "Build cmake with @MAKE@"
@MAKE@
check_exit_value $? "Build cmake" || exit 1
echo "Run cmake tests"
@MAKE@ test
check_exit_value $? "Test cmake" || exit 1
if [ -z "@SKIP_TESTS@" ]; then
echo "Run cmake tests"
@MAKE@ test
check_exit_value $? "Test cmake" || exit 1
fi
echo "Run package"
@MAKE@ package
./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@
check_exit_value $? "Package cmake" || exit 1
echo "Create Tar.gz"
./bin/cpack -G TGZ
./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@ -G TGZ
check_exit_value $? "Create TGZ" || exit 1
# need to add an extra copy thing here

View File

@ -3,7 +3,7 @@ set(PROCESSORS 2)
set(CVS_COMMAND /vol/local/bin/cvs)
set(HOST "sshserv.centers.ihost.com" )
set(EXTRA_HOP "rsh v60n177" )
set(MAKE "make")
set(MAKE_COMMAND "make")
set(CC "xlc")
set(CXX "xlC")
set(INITIAL_CACHE "CMAKE_BUILD_TYPE:STRING=Release")