Error when CMAKE_SKIP_INSTALL_RULES is set to ON in subdirectories
In a project where a sub-directory has set the variable CMAKE_SKIP_INSTALL_RULES
to ON
even thought the parent project has install()
-directive, installing the project is failing with
CMake Error at cmake_install.cmake:41 (include):
include could not find load file:
/path/to/build/subdir/cmake_install.cmake
cmake_install.cmake does not exist, accordingly to the documentation.
However this creates a problem because my parent-project does have install-rules which I want to use but the sub-directory is inhibiting me from doing so (and it does not even have install()-directives).
How should this case be handled? Is there something I can do about it in my parent project without changing the subdir-project? Should it be allowed for subdir-project to set this variable to ON?
Edited by Patrick Boettcher