Browse Source

add -dl on unix

Bill Hoffman 20 years ago
parent
commit
d938397b17
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Utilities/cmcurl/CMakeLists.txt
  2. 1 1
      Utilities/cmxmlrpc/CMakeLists.txt

+ 1 - 1
Utilities/cmcurl/CMakeLists.txt

@@ -582,5 +582,5 @@ IF(CURL_TESTING)
 ENDIF(CURL_TESTING)
 
 ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
-TARGET_LINK_LIBRARIES(LIBCURL cmcurl)
+TARGET_LINK_LIBRARIES(LIBCURL cmcurl ${CMAKE_DL_LIBS})
 ADD_TEST(curl "${EXECUTABLE_OUTPUT_PATH}/LIBCURL")

+ 1 - 1
Utilities/cmxmlrpc/CMakeLists.txt

@@ -114,7 +114,7 @@ IF(HAVE_PTHREADS)
 ENDIF(HAVE_PTHREADS)
 
 ADD_EXECUTABLE(xrtest synch_client.c)
-TARGET_LINK_LIBRARIES(xrtest cmXMLRPC)
+TARGET_LINK_LIBRARIES(xrtest cmXMLRPC ${CMAKE_DL_LIBS})
 
 # comment out test since it doesn pass and Andy doesn;t seem to be fixing it,
 # for now assume that XMLRPC is not production quality code - Ken