summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/dashsun1_release.cmake
blob: 619609eb612d4b8cccfc7a94a869a0237c2d9bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(PROCESSORS 1)
set(HOST dashsun1)
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_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_RULE_FILE_CONTENTS
  "SET(CMAKE_DL_LIBS \\\\\"-Bdynamic -ldl -Bstatic\\\\\")")
get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${path}/release_cmake.cmake)