Revision: 468
http://gearbox.svn.sourceforge.net/gearbox/?rev=468&view=rev
Author: russo2503v
Date: 2009-11-17 12:58:51 +0000 (Tue, 17 Nov 2009)
Log Message:
-----------
disable problematic nothing-to-export check. unlikely problem remains.
Modified Paths:
--------------
gearbox/trunk/cmake/WritePackageConfig.cmake
Modified: gearbox/trunk/cmake/WritePackageConfig.cmake
===================================================================
--- gearbox/trunk/cmake/WritePackageConfig.cmake 2009-11-17 12:56:23 UTC (rev 467)
+++ gearbox/trunk/cmake/WritePackageConfig.cmake 2009-11-17 12:58:51 UTC (rev 468)
@@ -28,12 +28,15 @@
DESTINATION ${_destination} )
# export targets (make sure there's something to export)
-if( DEFINED ${PROJECT_NAME}-targets )
+# TODO: it's not clear how to check if ${PROJECT_NAME}-targets is non-empty
+# what is this thing? a list? does not seem to a variable?
+# As it is now it will barf when all targets are disabled, e.g. with GBX_DISABLE_ALL=ON
+# if( DEFINED ${PROJECT_NAME}-targets )
install(
EXPORT ${PROJECT_NAME}-targets
# NAMESPACE import_
DESTINATION ${_destination} )
-endif()
+# endif()
set( _input_dir )
set( _output_dir )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|