Fix compile error with cmake + windows (reported by MiikaH)
authorDaniel Genrich <daniel.genrich@gmx.net>
Wed, 16 May 2012 12:18:25 +0000 (12:18 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Wed, 16 May 2012 12:18:25 +0000 (12:18 +0000)
CMakeLists.txt

index 855a4d8777f06a738b07605f58b8bb33dc57cb66..61603d7e7e24021d51e9ff0b26d52102adc3c0eb 100644 (file)
@@ -838,14 +838,16 @@ elseif(WIN32)
                        set(GETTEXT_LIBRARIES gnu_gettext)
                endif()
                
-               set(LAPACK ${LIBDIR}/lapack)
-               # set(LAPACK_INCLUDE_DIR ${LAPACK}/include)
-               set_lib_path(LAPACK_LIBPATH ${LAPACK}/lib)      
-               set(LAPACK_LIBRARIES
-                       ${LIBDIR}/lapack/lib/libf2c.lib
-                       ${LIBDIR}/lapack/lib/clapack_nowrap.lib
-                       ${LIBDIR}/lapack/lib/BLAS_nowrap.lib
-               )
+               if(WITH_MOD_CLOTH_ELTOPO)
+                       set(LAPACK ${LIBDIR}/lapack)
+                       # set(LAPACK_INCLUDE_DIR ${LAPACK}/include)
+                       set_lib_path(LAPACK_LIBPATH ${LAPACK}/lib)      
+                       set(LAPACK_LIBRARIES
+                               ${LIBDIR}/lapack/lib/libf2c.lib
+                               ${LIBDIR}/lapack/lib/clapack_nowrap.lib
+                               ${LIBDIR}/lapack/lib/BLAS_nowrap.lib
+                       )
+               endif()
 
                set(PNG_LIBRARIES libpng)
                set(JPEG_LIBRARIES libjpeg)