Reputation: 95
I try to build a C++ project with CMake on Visual Studio 2017. So far the CMake support is quite convincing. However, how do I call the PACKAGE target introduced by cpack? Does anyone have an idea how to do this from within the GUI (it does not show up in the context menu of the CMakeLists.txt file). The INSTALL as well as the BUILD_ALL target show up in the context menu of the CMakeLists.txt file but the PACKAGE target is missing. Is this a bug or am I missing something?
Upvotes: 1
Views: 936
Reputation: 65791
The default CMake PACKAGE
target is only added by CMake if a file named CPackConfig.cmake
exists in the outermost CMake build directory.
The CPackConfig.cmake
file is usually generated automatically by CMake when the CPack
module is included. It may however be generated under a different name, if the variable CPACK_OUTPUT_CONFIG_FILE
is set before the inclusion of CPack
.
Upvotes: 1