forked from Mirrors/openclonk
MSVC10: Avoid numerous "reload project?" prompts on CMakeLists change
Change the .sln file to make Visual Studio reload that; this also implies reloading all of the child projects. This way, we don't get a reload prompt for each loaded project. On non-Express versions of MSVC, the CMake macros still run. I don't think there is a way to disable them, but you can copy the macro body of StopBuilds to that of ReloadProjects to only get a single dialog box.rope
parent
daabc5be16
commit
35524e6b64
|
@ -1286,6 +1286,14 @@ endif()
|
|||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||
|
||||
# CMake support for MSVC 2010 is broken. Change the .sln file to avoid
|
||||
# millions of "reload X project?" dialog boxes.
|
||||
# For best results, also change CMake's ReloadProjects macro to only
|
||||
# call StopBuild().
|
||||
if(MSVC_VERSION EQUAL 1600)
|
||||
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.sln" "\n# reload me\n")
|
||||
endif()
|
||||
|
||||
############################################################################
|
||||
# installation
|
||||
############################################################################
|
||||
|
|
Loading…
Reference in New Issue