gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 93/153: CMake: CMake config files are defining CURL


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 93/153: CMake: CMake config files are defining CURL_STATICLIB for static builds
Date: Tue, 11 Sep 2018 12:52:44 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit ab66a804883e3d31f7c3e88b7aa446cb71dfd17d
Author: Adrien <address@hidden>
AuthorDate: Wed Aug 1 14:02:26 2018 +0200

    CMake: CMake config files are defining CURL_STATICLIB for static builds
    
    This change allows to use the CMake config files generated by Curl's
    CMake scripts for static builds of the library.
    The symbol CURL_STATIC lib must be defined to compile downstream,
    thus the config package is the perfect place to do so.
    
    Fixes #2817
    Closes #2823
    Reported-by: adnn on github
    Reviewed-by: Sergei Nikulov
---
 lib/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 306ba1a6e..87cbe8174 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -76,6 +76,10 @@ if(MSVC AND NOT BUILD_SHARED_LIBS)
   set_target_properties(${LIB_NAME} PROPERTIES STATIC_LIBRARY_FLAGS 
${CMAKE_EXE_LINKER_FLAGS})
 endif()
 
+if(NOT BUILD_SHARED_LIBS)
+    set_target_properties(${LIB_NAME} PROPERTIES INTERFACE_COMPILE_DEFINITIONS 
CURL_STATICLIB)
+endif()
+
 target_link_libraries(${LIB_NAME} ${CURL_LIBS})
 
 if(WIN32)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]