This is an automated email from the ASF dual-hosted git repository.

abroekhuis pushed a commit to branch feature/support_multiple_build_types
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/support_multiple_build_types by this push:
     new 22b5f7f  Updated linking of library with test
22b5f7f is described below

commit 22b5f7fe8ba1d013cae0914b9c1b2c1973548deb
Author: Alexander Broekhuis <[email protected]>
AuthorDate: Thu May 7 21:15:17 2020 +0200

    Updated linking of library with test
---
 libs/framework/gtest/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/framework/gtest/CMakeLists.txt 
b/libs/framework/gtest/CMakeLists.txt
index 9e8dbbc..ab94fff 100644
--- a/libs/framework/gtest/CMakeLists.txt
+++ b/libs/framework/gtest/CMakeLists.txt
@@ -25,7 +25,7 @@ add_celix_bundle(bundle_with_exception SOURCES 
src/nop_activator.c VERSION 1.0.0
 add_subdirectory(subdir) #simple_test_bundle4, simple_test_bundle5 and sublib
 
 add_celix_bundle(unresolveable_bundle SOURCES src/nop_activator.c VERSION 
1.0.0)
-target_link_libraries(unresolveable_bundle PRIVATE 
"-L${CMAKE_CURRENT_BINARY_DIR}/subdir -lsublib")
+target_link_libraries(unresolveable_bundle PRIVATE sublib)
 if(NOT APPLE)
     set_target_properties(unresolveable_bundle PROPERTIES LINK_FLAGS 
-Wl,--no-as-needed)
 endif()

Reply via email to