On 11/6/2011 7:00 PM, Stephen Kelly wrote:
include(${CMAKE_CURRENT_LIST_DIR}/GrantleeTargets.cmake)
It is up to the author of the config file to block this correctly
against multiple inclusion, e.g.
if(NOT Grantlee_TARGETS_INCLUDED)
set(Grantlee_TARGETS_INCLUDED 1)
include(${CMAKE_CURRENT_LIST_DIR}/GrantleeTargets.cmake)
endif()
if (NOT TARGET grantlee_templates)
ADD_LIBRARY(grantlee_templates SHARED IMPORTED)
endif()
This would hide cases of accidentally conflicting target names.
-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