Skip to content

Commit 1a32570

Browse files
committed
Fixed CPack include definition location
1 parent 7fdfbf1 commit 1a32570

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ message(STATUS " Build Examples: ${BUILD_EXAMPLES}")
168168
message(STATUS "")
169169

170170
# CPack Configuration for packaging
171-
include(CPack)
172171
set(CPACK_PACKAGE_NAME "libwsv5")
173172
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
174173
set(CPACK_PACKAGE_VENDOR "Aidan A. Bradley")
@@ -192,6 +191,8 @@ set(CPACK_DEBIAN_FILE_NAME "${CPACK_PACKAGE_NAME}_${PROJECT_VERSION}_${CPACK_DEB
192191
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
193192
set(CPACK_SOURCE_IGNORE_FILES "/build/;/cmake-build-*/;/.git/;/.gitignore;/.idea/;/.vscode/")
194193

194+
include(CPack)
195+
195196
message(STATUS "Package Generation:")
196197
message(STATUS " To create .deb packages: cpack -G DEB")
197198
message(STATUS " To create source archive: cpack --config CPackSourceConfig.cmake")

0 commit comments

Comments
 (0)