Merge topic 'fix-imported-lib-linking-test'
93034a8 Fix linking to imported libraries test.
This commit is contained in:
commit
ffe93315a2
@ -157,8 +157,8 @@ endif()
|
|||||||
# Test that dependent imported targets have usable
|
# Test that dependent imported targets have usable
|
||||||
# INTERFACE_COMPILE_DEFINITIONS and INTERFACE_INCLUDE_DIRECTORIES
|
# INTERFACE_COMPILE_DEFINITIONS and INTERFACE_INCLUDE_DIRECTORIES
|
||||||
|
|
||||||
add_library(deps_iface deps_iface.cpp)
|
add_executable(deps_iface deps_iface.c)
|
||||||
target_link_libraries(deps_iface testLibsDepends)
|
target_link_libraries(deps_iface testLibDepends)
|
||||||
set_property(TARGET deps_iface APPEND PROPERTY
|
set_property(TARGET deps_iface APPEND PROPERTY
|
||||||
COMPILE_DEFINITIONS
|
COMPILE_DEFINITIONS
|
||||||
$<TARGET_PROPERTY:testLibDepends,INTERFACE_COMPILE_DEFINITIONS>
|
$<TARGET_PROPERTY:testLibDepends,INTERFACE_COMPILE_DEFINITIONS>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
extern int testLibDepends(void);
|
extern int testLibDepends(void);
|
||||||
|
|
||||||
|
|
||||||
int main(int,char **)
|
int main()
|
||||||
{
|
{
|
||||||
return testLibDepends();
|
return testLibDepends();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user