[cmake-developers] optional-install topic

Brad King brad.king at kitware.com
Wed Jan 8 10:17:54 EST 2014


On 01/08/2014 05:01 AM, Nils Gladitz wrote:
> In the new test "MissingInstall" I run the command you suggest and 
> verify it gets a non-success exit status.

Thanks for the tests.  The topic looks good except that the
MissingInstall test fails on VS 6.  The reason is that msdev
returns -1 on failure so this hunk fails to recognize it:

+if(NOT "${RESULT}" GREATER "0")
+  message(FATAL_ERROR "install should have failed")
+endif()

I think you can use

 if(RESULT EQUAL 0)

instead.

Thanks,
-Brad




More information about the cmake-developers mailing list