From 5ed0ee96daddf144275a5e1a87456e207c4033db Mon Sep 17 00:00:00 2001 From: Dan Sanduleac Date: Sat, 21 Jul 2012 15:57:58 -0400 Subject: [PATCH] Fix missing curl dependency from phobos --- runtime/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 2bc0376c..e74683db 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -97,6 +97,11 @@ list(APPEND CORE_D ${LDC_D} ${RUNTIME_DIR}/src/object_.d) file(GLOB CORE_C ${RUNTIME_DIR}/src/core/stdc/*.c) if(PHOBOS2_DIR) + # + # Locate curl. + # + find_package(curl REQUIRED) + file(GLOB PHOBOS2_D ${PHOBOS2_DIR}/std/*.d) file(GLOB PHOBOS2_D_NET ${PHOBOS2_DIR}/std/net/*.d) file(GLOB_RECURSE PHOBOS2_D_INTERNAL ${PHOBOS2_DIR}/std/internal/*.d) @@ -346,6 +351,8 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix) COMPILE_FLAGS "${c_flags}" LINK_FLAGS "${ld_flags}" ) + # Phobos now uses curl + target_link_libraries(phobos-ldc${target_suffix} "curl") install(TARGETS phobos-ldc${target_suffix} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${path_suffix}) add_dependencies(phobos2 DEPENDS phobos-ldc${target_suffix}) endif(PHOBOS2_DIR)