This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
6a13f43f30
CMake
/
Tests
/
ExportImport
/
Export
/
testStaticLibRequiredPrivate.c
2 lines
53 B
C
Raw
Normal View
History
Unescape
Escape
Fix export of STATIC library PRIVATE dependencies with CMP0022 NEW The target_link_libraries command records the PRIVATE dependencies of a STATIC library in INTERFACE_LINK_LIBRARIES as "$<LINK_ONLY:dep>". This hides the target name from export namespacing logic inside a generator expression. When user-written generator expressions reference a target name they must put it inside a "$<TARGET_NAME:dep>" expression to allow the export logic to rename the target. In the case that the private dependency is not already a generator expression, target_link_libraries must use "$<LINK_ONLY:$<TARGET_NAME:dep>>" to allow the export logic to rename the target. Reported-by: Tamás Kenéz <tamas.kenez@gmail.com>
2016-01-15 18:02:52 +03:00
int
testStaticLibRequiredPrivate
(
void
)
{
return
0
;
}