Merge branch 'object-library-missing-source' into release
This commit is contained in:
commit
71eee316c2
@ -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())
|
||||
|
1
Tests/RunCMake/ObjectLibrary/MissingSource-result.txt
Normal file
1
Tests/RunCMake/ObjectLibrary/MissingSource-result.txt
Normal file
@ -0,0 +1 @@
|
||||
1
|
9
Tests/RunCMake/ObjectLibrary/MissingSource-stderr.txt
Normal file
9
Tests/RunCMake/ObjectLibrary/MissingSource-stderr.txt
Normal file
@ -0,0 +1,9 @@
|
||||
CMake Error at MissingSource.cmake:1 \(add_library\):
|
||||
Cannot find source file:
|
||||
|
||||
missing.c
|
||||
|
||||
Tried extensions( \.[A-Za-z+]+|
|
||||
)*
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
1
Tests/RunCMake/ObjectLibrary/MissingSource.cmake
Normal file
1
Tests/RunCMake/ObjectLibrary/MissingSource.cmake
Normal file
@ -0,0 +1 @@
|
||||
add_library(A OBJECT missing.c)
|
@ -12,6 +12,7 @@ run_cmake(Install)
|
||||
run_cmake(LinkObjLHS)
|
||||
run_cmake(LinkObjRHS1)
|
||||
run_cmake(LinkObjRHS2)
|
||||
run_cmake(MissingSource)
|
||||
run_cmake(ObjWithObj)
|
||||
run_cmake(PostBuild)
|
||||
run_cmake(PreBuild)
|
||||
|
Loading…
x
Reference in New Issue
Block a user