[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [smokegen/smokev4] smoke: link against dl or kernel32 for dlopen or LoadLibrary
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2012-10-12 15:37:50
Message-ID: 20121012153750.8941EA6075 () git ! kde ! org
[Download RAW message or body]

Git commit 3c471295d1f614cb19bebaf65e4ca722301c0de5 by Arno Rehn.
Committed on 12/10/2012 at 17:37.
Pushed by arnorehn into branch 'smokev4'.

link against dl or kernel32 for dlopen or LoadLibrary

M  +5    -0    smoke/CMakeLists.txt

http://commits.kde.org/smokegen/3c471295d1f614cb19bebaf65e4ca722301c0de5

diff --git a/smoke/CMakeLists.txt b/smoke/CMakeLists.txt
index 405a0e2..7152414 100644
--- a/smoke/CMakeLists.txt
+++ b/smoke/CMakeLists.txt
@@ -24,6 +24,11 @@ set (SMOKE_HEADERS marshall.h
 =

 add_library(smokebase SHARED ${SMOKEBASE_SRC})
 target_link_libraries(smokebase)
+if (WIN32)
+    target_link_libraries(smokebase kernel32)
+else (WIN32)
+    target_link_libraries(smokebase dl)
+endif (WIN32)
 set_target_properties(smokebase PROPERTIES =

                                 VERSION ${SMOKE_VERSION}
                                 SOVERSION ${SMOKE_VERSION_MAJOR})
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic