---- cminpack-1.1.3.orig/CMakeLists.txt	2011-02-06 20:49:15.000000000 +0100
-+++ cminpack-1.1.3/CMakeLists.txt	2011-04-24 23:26:14.711975002 +0200
+--- cminpack-1.1.3/CMakeLists.txt	2011-02-06 20:49:15.000000000 +0100
++++ cminpack-1.1.3.mine/CMakeLists.txt	2011-04-25 23:23:30.613386326 +0200
 @@ -5,6 +5,7 @@
  project (CMINPACK)
  string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

    LIBRARY DESTINATION ${CMINPACK_LIB_INSTALL_DIR} COMPONENT library
    ARCHIVE DESTINATION ${CMINPACK_LIB_INSTALL_DIR} COMPONENT library
    RUNTIME DESTINATION ${CMINPACK_LIB_INSTALL_DIR} COMPONENT library)
@@ -67,3 +74,34 @@
 
 set_target_properties(cminpack PROPERTIES VERSION ${CMINPACK_VERSION})
 

 include(${PROJECT_SOURCE_DIR}/cmake/cminpack_utils.cmake)
 # Set version and OS-specific settings
 set(CMINPACK_VERSION 1.0.90 CACHE STRING "CMinpack version")
@@ -32,6 +33,9 @@
 else (SHARED_LIBS)
   message (STATUS "Building static libraries.")
   set (LIB_TYPE STATIC)
+	if(WIN32)
+		add_definitions(-DCMINPACK_NO_DLL)
+	endif(WIN32)
 endif (SHARED_LIBS)
 
 #set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/../build)
@@ -52,9 +56,15 @@
 set (cminpack_hdrs
     cminpack.h minpack.h)
 
