dashsun1_release.cmake 877 B

12345678910111213141516171819202122
  1. set(PROCESSORS 1)
  2. set(HOST dashsun1)
  3. set(MAKE "make")
  4. execute_process(COMMAND ssh ${HOST}
  5. pwd RESULT_VARIABLE result OUTPUT_VARIABLE BUILD_DIR)
  6. # now strip the newline (we need perl chop...)
  7. string(LENGTH "${BUILD_DIR}" length)
  8. math(EXPR length "${length} -1" )
  9. string(SUBSTRING "${BUILD_DIR}" 0 ${length} BUILD_DIR)
  10. set(USER_MAKE_RULE_FILE
  11. "${BUILD_DIR}/CMakeReleaseDirectory/UserMakeRules.cmake")
  12. set(INITIAL_CACHE "
  13. CMAKE_BUILD_TYPE:STRING=Release
  14. HAVE_LIBDL:INTERNAL=FALSE
  15. CMAKE_EXE_LINKER_FLAGS:STRING=-Bdynamic -ldl -Bstatic
  16. CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${USER_MAKE_RULE_FILE}
  17. CURSES_LIBRARY:FILEPATH=/usr/lib/libcurses.a
  18. FORM_LIBRARY:FILEPATH=/usr/lib/libform.a")
  19. set(USER_MAKE_RULE_FILE_CONTENTS
  20. "SET(CMAKE_DL_LIBS \\\\\"-Bdynamic -ldl -Bstatic\\\\\")")
  21. get_filename_component(path "${CMAKE_CURRENT_LIST_FILE}" PATH)
  22. include(${path}/release_cmake.cmake)