[cmake-developers] optional-install topic

Nils Gladitz nilsgladitz at gmail.com
Wed Jan 8 05:01:33 EST 2014

On 06.01.2014 16:48, Brad King wrote:
> The topic adds the variable "CMAKE_DISABLE_INSTALL_RULES".
> For skipping certain generation features we already have the
> convention "CMAKE_SKIP_..." for variable names.  Perhaps

> Please add a RunCMake.install test with a case covering the warning:
> +    mf->IssueMessage(cmake::WARNING,
> +      "CMAKE_DISABLE_INSTALL_RULES was enabled even though "
> +      "installation rules have been specified");
> Also please look at adding a full test that verifies that
> no cmake_install.cmake file is generated and if possible that
> "cmake --build . --target install" fails.
I've added checks for cmake_install.cmake and the warning in the 
subtests that I added in the new "RunCMake.install" test.
In the new test "MissingInstall" I run the command you suggest and 
verify it gets a non-success exit status.


More information about the cmake-developers mailing list