From 5893b99122e95d6efdfdf8f5a6ef2f5642c18f43 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 11 Apr 2008 10:58:28 +0000 Subject: [PATCH] From Sherman Wilcox, "Modified the cmakelists.txt file for the curl plugin so the proper linker directories are set in Win32. The old cmakelists.txt would set the lib release folder for debug builds as well. This should correct that." --- src/osgPlugins/curl/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/curl/CMakeLists.txt b/src/osgPlugins/curl/CMakeLists.txt index 55c0eb74b..7f63b8c99 100644 --- a/src/osgPlugins/curl/CMakeLists.txt +++ b/src/osgPlugins/curl/CMakeLists.txt @@ -1,10 +1,14 @@ #this file is automatically generated +IF(WIN32) + SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT") +ENDIF(WIN32) + INCLUDE_DIRECTORIES( ${CURL_INCLUDE_DIRS} ) SET(TARGET_SRC ReaderWriterCURL.cpp ) -SET(TARGET_EXTERNAL_LIBRARIES ${CURL_LIBRARY} ) +SET(TARGET_LIBRARIES_VARS CURL_LIBRARY ) #### end var setup ### SETUP_PLUGIN(curl)