On 01/15/2014 10:11 AM, Daniele E. Domenichelli wrote:
> -    set_property(CACHE CMAKE_INSTALL_LIBDIR PROPERTY VALUE 
> "${_LIBDIR_DEFAULT}")
> +    get_property(_libdir_set CACHE PROPERTY CMAKE_INSTALL_LIBDIR SET)

That should be

 get_property(_libdir_set CACHE CMAKE_INSTALL_LIBDIR PROPERTY TYPE)

Also I realized that __LAST_CMAKE_INSTALL_PREFIX should be called
_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX since it holds the value
that this *module* last used as CMAKE_INSTALL_PREFIX.

Hmm...will this logic work correctly if GNUInstallDirs is included
in more than one place in a project?  The test:

+if(NOT DEFINED CMAKE_INSTALL_LIBDIR
+    OR NOT "${__LAST_CMAKE_INSTALL_PREFIX}" STREQUAL "${CMAKE_INSTALL_PREFIX}")

should not succeed the second time.  Please verify with manual
testing.  Also this line should be tweaked to not consider the
__LAST_CMAKE_INSTALL_PREFIX if it is not defined.

Thanks,
-Brad

-- 

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to