Skip to content

Commit

Permalink
cmake:: cpack installs only if TAU_BUILD_EXECUTABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
tklip committed Nov 23, 2024
1 parent a326d2c commit 9a20248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY OFF)
#
# Specify installation directories and files
#
if (TAU_WINDOWS_PACKAGE)
if (TAU_BUILD_EXECUTABLE AND TAU_WINDOWS_PACKAGE)
install(TARGETS ${TAU_EXECUTABLE_NAME}
RUNTIME DESTINATION "bin"
COMPONENT "WindowsFiles"
Expand All @@ -236,7 +236,7 @@ if (TAU_WINDOWS_PACKAGE)
set(CPACK_NSIS_LICENSE_FILE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
set(CPACK_NSIS_INSTALLER_PRIVILEGES "lowest")
set(CPACK_NSIS_MODIFY_PATH ON)
elseif (TAU_WINDOWS_ZIP_PACKAGE)
elseif (TAU_BUILD_EXECUTABLE AND TAU_WINDOWS_ZIP_PACKAGE)
install(TARGETS ${TAU_EXECUTABLE_NAME}
RUNTIME DESTINATION "."
COMPONENT "ZipFiles"
Expand All @@ -247,7 +247,7 @@ elseif (TAU_WINDOWS_ZIP_PACKAGE)
set(CPACK_GENERATOR "ZIP")
set(CPACK_COMPONENTS_ALL "ZipFiles")
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
else()
elseif (TAU_BUILD_EXECUTABLE)
install(TARGETS ${TAU_EXECUTABLE_NAME}
RUNTIME DESTINATION "bin"
COMPONENT "LinuxFiles"
Expand Down

0 comments on commit 9a20248

Please sign in to comment.