CMake/Tests/ExportImport/Import/A/iface_test.cpp
Stephen Kelly 4f7ceb56d1 Test non-IMPORTED libraries in the INTERFACE of IMPORTED libraries.
If a non-IMPORTED library is added to the INTERFACE_LINK_LIBRARIES
of a IMPORTED target, the non-IMPORTED target needs to become a
target dependency and link dependency of the consuming target.

This is already the case since commit 30962029 (Make targets depend
on the link interface of their dependees, 2012-12-26), and fixed in
the parent commit, so test that it works.
2013-07-02 17:03:53 +02:00

12 lines
166 B
C++

#ifndef USING_TESTSHAREDLIBREQUIRED
#error Expected USING_TESTSHAREDLIBREQUIRED
#endif
#include "excludedFromAll.h"
int main(void)
{
return excludedFromAll();
}