X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2FCMakeLists.txt;h=b2bcf090467074c3676025336d45bc010a70cfc8;hb=867eb33477c07331e7b58302119308d02a02ee01;hp=e7886ac55dc40a682a46f0ce017d5c5aec07c4eb;hpb=32de14ae0782822e9c54c3fbb28cdefc1f4de969;p=platform%2Fupstream%2Fcurl.git diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e7886ac..b2bcf09 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -48,6 +48,25 @@ endif() # ) # ENDIF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64) +if(HAVE_FEATURES_H) + set_source_files_properties( + cookie.c + easy.c + formdata.c + getenv.c + nonblock.c + hash.c + http.c + if2ip.c + mprintf.c + multi.c + sendf.c + telnet.c + transfer.c + url.c + COMPILE_FLAGS -D_BSD_SOURCE) +endif(HAVE_FEATURES_H) + # The rest of the build @@ -57,7 +76,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) -if(USE_ARES) +if(CURL_USE_ARES) include_directories(${CARES_INCLUDE_DIR}) endif() @@ -87,6 +106,8 @@ endif() set_target_properties(${LIB_NAME} PROPERTIES COMPILE_DEFINITIONS BUILDING_LIBCURL) +setup_curl_dependencies(${LIB_NAME}) + # Remove the "lib" prefix since the library is already named "libcurl". set_target_properties(${LIB_NAME} PROPERTIES PREFIX "") set_target_properties(${LIB_NAME} PROPERTIES IMPORT_PREFIX "")