summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/dashsun1_release.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/Release/dashsun1_release.cmake')
-rw-r--r--Utilities/Release/dashsun1_release.cmake26
1 files changed, 18 insertions, 8 deletions
diff --git a/Utilities/Release/dashsun1_release.cmake b/Utilities/Release/dashsun1_release.cmake
index b28e134..619609e 100644
--- a/Utilities/Release/dashsun1_release.cmake
+++ b/Utilities/Release/dashsun1_release.cmake
@@ -1,12 +1,22 @@
-set(PROCESSORS 2)
+set(PROCESSORS 1)
set(HOST dashsun1)
-set(MAKE "make -j2")
-execute_process(COMMAND ssh ${HOST} pwd RESULT_VARIABLE result OUTPUT_VARIABLE BUILD_DIR)
-message(fatal_error ${BUILD_DIR}/CMakeReleaseDirectory/UserMakeRules.cmake)
+set(MAKE "make")
+execute_process(COMMAND ssh ${HOST}
+ pwd RESULT_VARIABLE result OUTPUT_VARIABLE BUILD_DIR)
+# now strip the newline (we need perl chop...)
+string(LENGTH "${BUILD_DIR}" length)
+math(EXPR length "${length} -1" )
+string(SUBSTRING "${BUILD_DIR}" 0 ${length} BUILD_DIR)
+set(USER_MAKE_RULE_FILE
+ "${BUILD_DIR}/CMakeReleaseDirectory/UserMakeRules.cmake")
set(INITIAL_CACHE "
-CMAKE_EXE_LINKER_FLAGS:STRING=-Bstatic
-CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
+CMAKE_BUILD_TYPE:STRING=Release
+HAVE_LIBDL:INTERNAL=FALSE
+CMAKE_EXE_LINKER_FLAGS:STRING=-Bdynamic -ldl -Bstatic
+CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${USER_MAKE_RULE_FILE}
CURSES_LIBRARY:FILEPATH=/usr/lib/libcurses.a
FORM_LIBRARY:FILEPATH=/usr/lib/libform.a")
-set(USER_MAKE_RULES "SET(CMAKE_DL_LIBS \"-Bdynamic -ldl -Bstatic\")"
-include(release_cmake.cmake)
+set(USER_MAKE_RULE_FILE_CONTENTS
+ "SET(CMAKE_DL_LIBS \\\\\"-Bdynamic -ldl -Bstatic\\\\\")")
+get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
+include(${path}/release_cmake.cmake)