aboutsummaryrefslogtreecommitdiff
path: root/src/threads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-08 16:43:55 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-08 16:43:55 +0200
commitd2f38da094a2c9eeddf919c252137ca49bcf29a1 (patch)
treea2cee08d4ca3b0ac7e250d13a034ab89221df377 /src/threads
parent697d51cd936ecb35ad10d03db62cbaac12906344 (diff)
downloadlibssh-d2f38da094a2c9eeddf919c252137ca49bcf29a1.tar.gz
libssh-d2f38da094a2c9eeddf919c252137ca49bcf29a1.tar.xz
libssh-d2f38da094a2c9eeddf919c252137ca49bcf29a1.zip
build: Make sure LIBSSH_THREADS_LINK_LIBRARIES is in the cache.
Diffstat (limited to 'src/threads')
-rw-r--r--src/threads/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/threads/CMakeLists.txt b/src/threads/CMakeLists.txt
index 69959c5e..74d98dcb 100644
--- a/src/threads/CMakeLists.txt
+++ b/src/threads/CMakeLists.txt
@@ -27,11 +27,6 @@ set(LIBSSH_THREADS_LINK_LIBRARIES
${LIBSSH_SHARED_LIBRARY}
)
-set(LIBSSH_THREADS_LINK_LIBRARIES
- ${LIBSSH_THREADS_LINK_LIBRARIES}
- CACHE INTERNAL "libssh threads link libraries"
-)
-
set(libssh_threads_SRCS
)
@@ -48,11 +43,18 @@ if (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
)
endif (CMAKE_HAVE_PTHREADS_CREATE OR CMAKE_HAVE_PTHREAD_CREATE)
+set(LIBSSH_THREADS_LINK_LIBRARIES
+ ${LIBSSH_THREADS_LINK_LIBRARIES}
+ CACHE INTERNAL "libssh threads link libraries"
+)
+
include_directories(
${LIBSSH_THREADS_PUBLIC_INCLUDE_DIRS}
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
)
+message(STATUS "ASN: LIBSSH_THREADS_LINK_LIBRARIES: ${LIBSSH_THREADS_LINK_LIBRARIES}")
+
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})