On Monday 07 June 2010, Biddiscombe, John A. wrote: > Seems that just doing > > IF (NOT ${PROJECTXXX_SOURCE_DIR}) > include config file > ENDIF > > is enough and works ok. If the project is part of the same build, the > source dir is defined, otherwise not.
You could also put the targets in the export file into a "namespace" (using the "NAMESPACE" argument of export()), so that when importing the file the imported target name wouldn't be "vtkhdf5", but e.g. "HDF5::vtkhdf5". Alex _______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake