mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
be0458c562
The boolean variable CMAKE_SKIP_INSTALL_RULES allows disabling generation of install rules for projects which don't want them.
19 lines
340 B
CMake
19 lines
340 B
CMake
if(MULTI_CONFIG)
|
|
set(SI_CONFIG --config $<CONFIGURATION>)
|
|
else()
|
|
set(SI_CONFIG)
|
|
endif()
|
|
|
|
execute_process(
|
|
COMMAND ${CMAKE_COMMAND}
|
|
--build .
|
|
--target install ${SI_CONFIG}
|
|
RESULT_VARIABLE RESULT
|
|
OUTPUT_VARIABLE OUTPUT
|
|
ERROR_VARIABLE ERROR
|
|
)
|
|
|
|
if(RESULT EQUAL 0)
|
|
message(FATAL_ERROR "install should have failed")
|
|
endif()
|