summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-01 17:39:50 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-01 18:46:58 (GMT)
commit5a2fc3d69659717e530becddb3cbebb04583f4e9 (patch)
tree49d3bde53aa85a08522a4a02ef188d757d8d4a21 /Source
parentc515dc574879448d66e2c5a27b9807d95a27fefd (diff)
downloadCMake-5a2fc3d69659717e530becddb3cbebb04583f4e9.zip
CMake-5a2fc3d69659717e530becddb3cbebb04583f4e9.tar.gz
CMake-5a2fc3d69659717e530becddb3cbebb04583f4e9.tar.bz2
Check for OBJECT_LIBRARY source files at start of generation
Teach cmGlobalGenerator::CheckTargets to include OBJECT_LIBRARY targets in the check for source file existence. Extend the RunCMake.ObjectLibrary test to cover this case.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 7f2b592..b12c691 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1088,6 +1088,7 @@ bool cmGlobalGenerator::CheckTargets()
target.GetType() == cmTarget::STATIC_LIBRARY ||
target.GetType() == cmTarget::SHARED_LIBRARY ||
target.GetType() == cmTarget::MODULE_LIBRARY ||
+ target.GetType() == cmTarget::OBJECT_LIBRARY ||
target.GetType() == cmTarget::UTILITY)
{
if(!target.FindSourceFiles())