@@ -26,16 +26,18 @@ cmake_minimum_required(VERSION 3.0)
26
26
# Build MSI package from files installed in CMAKE_INSTALL_PREFIX location.
27
27
#
28
28
# Usage:
29
- # cmake -D CMAKE_INSTALL_PREFIX=<install loc> ... <src>/packaging/WiX
29
+ # cmake -D CMAKE_INSTALL_PREFIX=<install loc>
30
+ # -D INSTALL_MANIFEST=<manifest file> ... <src>/packaging/WiX
30
31
# cmake --build . --target MSI
31
32
# cmake --build . --target ZIP
32
33
#
33
34
# This should be invoked (in a dedicated location) after building and
34
35
# installing main connector project. CMAKE_INSTALL_PREFIX should point
35
- # at install location of the main project. It is expected that it contains
36
- # install_manifest.cmake which describes install components defined in
37
- # the project and which is generated if connector was built under
38
- # WITH_PACKAGES option.
36
+ # at install location of the main project. INSTALL_MANIFEST should point
37
+ # at install manifest file generated by the builds (this happens if the
38
+ # same INSTALL_MANIFEST option is given together with WITH_PACKAGES during
39
+ # the builds). The manifest file describes install components defined in
40
+ # the project.
39
41
#
40
42
# Generating MSI package
41
43
# ----------------------
@@ -47,13 +49,13 @@ cmake_minimum_required(VERSION 3.0)
47
49
# Some other options might need to be specified to correctly generate
48
50
# the .wxs definition. For example STATIC_MSVCRT or
49
51
# BUNDLE_RUNTIME_LIBRARIES. Otherwise most of the information is taken
50
- # from install_manifest.cmake and version.cmake, packaging/PackageSpecs.cmake
52
+ # from the install manifest and version.cmake, packaging/PackageSpecs.cmake
51
53
# files in the main project sources.
52
54
#
53
55
# Generating ZIP package
54
56
# ----------------------
55
57
# ZIP package simply includes all the files from the given install
56
- # location (excluding install_manifest.cmake etc.)
58
+ # location.
57
59
#
58
60
59
61
IF (NOT WIN32 )
@@ -75,16 +77,15 @@ if(NOT EXISTS "${BASE_DIR}/packaging/WiX")
75
77
endif ()
76
78
77
79
#
78
- # Check the install location
80
+ # Check the install location and the manifest file
79
81
#
80
82
81
83
file (TO_CMAKE_PATH ${CMAKE_INSTALL_PREFIX} INSTALL_DIR )
82
- set (INSTALL_MANIFEST ${INSTALL_DIR} /install_manifest.cmake )
83
84
84
85
if (NOT EXISTS ${INSTALL_MANIFEST} )
85
86
message (FATAL_ERROR
86
- "Could not find install_manifest.cmake in the install location :"
87
- " ${CMAKE_INSTALL_PREFIX } "
87
+ "Could not find specified install manifest file :"
88
+ " ${INSTALL_MANIFEST } "
88
89
)
89
90
endif ()
90
91
0 commit comments