On Thursday 17 July 2008 23:00:15 Alin M Elena wrote: > Hi, > > 1. Few days ago maybe weeks on the list I have seen a discussion about > static/dynamic linking. > > One of the solution proposed there to achieve a static linking was > > if (UNIX) > set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so") > endif(UNIX) > Something similar can be done for windows I suspect. > > Maybe you can add an extra argument to find_package(... USE_STATIC) > and internally in FindXXX.cmake to use it to find the correct linkage. Just > an idea. The main problem AFAIK for VS is that static and dynamic libraries are indistinguishable by extension. They both have a .lib one. And you don't know in advance is some library is static one or just import library for some dynamic one.
For cygwin/mingw things may be more similar to Unix. > > 2. I read in one post that intel was interested in cmake, fortran and > Visual Studio. > Having the connections with them you could ask them if they may be > interested in cmake and MKL. Just a thought as linking against mkl (pure > layered versions) may be quite a pain for a new user. > > Alin _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
