Commit ffe93315 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'fix-imported-lib-linking-test'

93034a83 Fix linking to imported libraries test.
parents 59290866 93034a83
......@@ -157,8 +157,8 @@ endif()
# Test that dependent imported targets have usable
# INTERFACE_COMPILE_DEFINITIONS and INTERFACE_INCLUDE_DIRECTORIES
add_library(deps_iface deps_iface.cpp)
target_link_libraries(deps_iface testLibsDepends)
add_executable(deps_iface deps_iface.c)
target_link_libraries(deps_iface testLibDepends)
set_property(TARGET deps_iface APPEND PROPERTY
COMPILE_DEFINITIONS
$<TARGET_PROPERTY:testLibDepends,INTERFACE_COMPILE_DEFINITIONS>
......
......@@ -18,7 +18,7 @@
extern int testLibDepends(void);
int main(int,char **)
int main()
{
return testLibDepends();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment