diff --git a/development/cmake/modules/LyXMacros.cmake b/development/cmake/modules/LyXMacros.cmake index bb26e6687b..6514eb2eb8 100644 --- a/development/cmake/modules/LyXMacros.cmake +++ b/development/cmake/modules/LyXMacros.cmake @@ -264,10 +264,16 @@ endmacro() 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") + file(WRITE ${run_cmake} "#!/bin/bash \n") execute_process(COMMAND chmod 755 ${run_cmake}) + set(cont "\\\n") + elseif(WIN32) + set(run_cmake ${CMAKE_BINARY_DIR}/run_cmake.bat) + file(WRITE ${run_cmake} "") + set(cont "