Clinton Stimpson wrote:
> I have an example (attached)
The example becomes more readable and easier to reason about by applying
this patch:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89a415d..15bfb46 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,5 @@
cmake_min
I have an example (attached) that gives a link error because an -rpath-link
flag is missing.
If I change the line
add_library(static STATIC static.cpp)
to
add_library(static SHARED static.cpp)
then the problem goes away.
Also, if I change
target_link_libraries(shared2 static)
to
target_link_li