mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
a6e4e73da3
Add a CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD variable to control this behavior.
30 lines
939 B
CMake
30 lines
939 B
CMake
message(STATUS "Testing configuration ${activeConfig}.")
|
|
|
|
macro(TestExists exeName)
|
|
set(exeFile "${dir}/${activeConfig}/${exeName}.exe")
|
|
if(${ARGN} EXISTS "${exeFile}")
|
|
message(STATUS "File ${exeFile} was correctly found ${ARGN} to exist.")
|
|
else()
|
|
message(FATAL_ERROR "File ${exeFile} was expected ${ARGN} to exist!")
|
|
endif()
|
|
set(exeFile "${dir}/${activeConfig}/install/${exeName}.exe")
|
|
if(${ARGN} EXISTS "${exeFile}")
|
|
message(STATUS "File ${exeFile} was correctly found ${ARGN} to exist.")
|
|
else()
|
|
message(FATAL_ERROR "File ${exeFile} was expected ${ARGN} to exist!")
|
|
endif()
|
|
endmacro()
|
|
|
|
TestExists(DefaultBuilt)
|
|
TestExists(AlwaysBuilt)
|
|
TestExists(NeverBuilt NOT)
|
|
foreach(config ${allConfigs})
|
|
if(config STREQUAL activeConfig)
|
|
TestExists(BuiltIn${config})
|
|
TestExists(ExcludedIn${config} NOT)
|
|
else()
|
|
TestExists(BuiltIn${config} NOT)
|
|
TestExists(ExcludedIn${config})
|
|
endif()
|
|
endforeach()
|