File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ add_custom_target(generate_manifest
40
40
COMMAND ${CMAKE_COMMAND}
41
41
-D INSTALL_DIR=${CMAKE_INSTALL_PREFIX}
42
42
-D BUILD_DIR=${PROJECT_BINARY_DIR}
43
+ -D CONFIG=$<CONFIG>
43
44
-P "${CMAKE_CURRENT_SOURCE_DIR} /install_manifest.cmake"
44
45
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
45
46
COMMENT "Generating install manifest"
Original file line number Diff line number Diff line change @@ -124,9 +124,15 @@ endfunction(file)
124
124
# script.
125
125
#
126
126
127
- set (CMAKE_INSTALL_CONFIG_NAME "Release" )
127
+ if (CONFIG )
128
+ set (CMAKE_INSTALL_CONFIG_NAME ${CONFIG} )
129
+ else ()
130
+ set (CMAKE_INSTALL_CONFIG_NAME "Release" )
131
+ endif ()
128
132
set (CMAKE_INSTALL_PREFIX "." )
129
133
134
+ message ("Install manifest for build configuration: ${CMAKE_INSTALL_CONFIG_NAME} " )
135
+
130
136
foreach (COMP ${CPACK_COMPONENTS_ALL} )
131
137
set (CMAKE_INSTALL_COMPONENT ${COMP} )
132
138
#message("\nComponent: ${CMAKE_INSTALL_COMPONENT}")
You can’t perform that action at this time.
0 commit comments