To exclude INSTALL commands from the subdirectory in CPack, you can use the following command in the top-level CMakeLists.txt file:
set(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${CMAKE_CURRENT_SOURCE_DIR}/googletest:OFF")
This command appends the googletest subdirectory to the list of projects that should not have INSTALL commands included in their package. The :OFF
option explicitly sets INSTALL to OFF for the googletest project.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-06-15 11:00:00 +0000
Seen: 13 times
Last updated: Jul 05 '22
How can multiple commands be executed using a single shortcut in Visual Studio Code's keybindings?
In nodejs, what is the process to delete the terminal and go back to previous commands?
What is the process of automating commands and cronjob expressions stored in a Laravel database?
Can multiple commands in a custom target in CMake have different working directories?
How can commands be run on a remote Linux system from within the vscode editor?
How do you combine the results of two commands in yt-dlp or youtube-dl?
What is the procedure for using multiple commands in VSCode's shortcut feature?