macro(LYX_OPTION_LIST_ALL)
+ if(UNIX)
+ set(run_cmake ${CMAKE_BINARY_DIR}/run_cmake.sh)
+ file(WRITE ${run_cmake} "#!/bin/bash\n")
+ file(APPEND ${run_cmake} "cmake ${CMAKE_SOURCE_DIR} \\\n")
+ execute_process(COMMAND chmod 755 ${run_cmake})
+ endif()
foreach(_option ${LYX_OPTIONS})
if(${_option}_show_message OR ${ARGV0} STREQUAL "help")
string(SUBSTRING "${_option} " 0 25 _var)
string(SUBSTRING "${_isset} " 0 4 _val)
message(STATUS "${_var}= ${_val} : ${${_option}_description}")
endif()
+ if(UNIX)
+ file(APPEND ${run_cmake} " -D${_option}=${${_option}} \\\n")
+ endif()
endforeach()
+ if(UNIX)
+ file(APPEND ${run_cmake} "\n")
+ message(STATUS)
+ message(STATUS "CMake command with options is available in shell script")
+ message(STATUS " '${run_cmake}'")
+ endif()
endmacro()
macro(lyx_add_info_files group)