Reputation: 23
I am trying to compile a Library using CMAKE-gui 3.0.2 and Visual Studio express 2013.
Everything seems to be fine during the configuration/generation process in cmake-gui, as I am able to set the CMAKE_INSTALL_PREFIX
variable to the path in which I want to have my library installed. And I got no errors during configuration and generation.
I then open the generated .sln
file in which I can build the ALL_BUILD
target, which runs smoothly with no errors and no targets skipped.
However, the INSTALL
target is simply not present in the Solution Explorer, therefore I really do not have any idea on how to install the library.
Upon further inspection, I noticed that cmake did create a file called cmake_install.cmake
, but I don't know what should I do with it.
Upvotes: 2
Views: 2443
Reputation: 171097
CMake will only generate the INSTALL
target when there is actually anything to install. It would seem you have no install()
commands in your project.
Presence of the variable CMAKE_INSTALL_PREFIX
does not imply anything - the variable is always present, and is used to control the installation destination when there is anything to install.
Likewise, the file cmake_install.cmake
is always created; but if you inspect it, you'll find it's basically a no-op in your case (probably just some messages, setting CMake variables and possibly creating a manifest which is not used for anything).
Upvotes: 5