ENH: Updated post-build command to drive installation through the native build system.
This commit is contained in:
parent
49bf10e8e9
commit
ec4fcb87f2
|
@ -70,10 +70,14 @@ ENDIF(STAGE2)
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
TARGET ${install_target}
|
TARGET ${install_target}
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||||
ARGS -DBUILD_TYPE:STRING=${CMAKE_CFG_INTDIR}
|
ARGS --build-and-test
|
||||||
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake"
|
${CMAKE_SOURCE_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
|
--build-project ${PROJECT_NAME}
|
||||||
|
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
|
||||||
|
--build-noclean
|
||||||
|
--build-target install
|
||||||
COMMENT "Install Project"
|
COMMENT "Install Project"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -70,10 +70,14 @@ ENDIF(STAGE2)
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
TARGET ${install_target}
|
TARGET ${install_target}
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||||
ARGS -DBUILD_TYPE:STRING=${CMAKE_CFG_INTDIR}
|
ARGS --build-and-test
|
||||||
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake"
|
${CMAKE_SOURCE_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
|
--build-project ${PROJECT_NAME}
|
||||||
|
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
|
||||||
|
--build-noclean
|
||||||
|
--build-target install
|
||||||
COMMENT "Install Project"
|
COMMENT "Install Project"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue