[CMake] how to link to the libsvm in cmake?

2008-10-04 Thread kdsfinger
hi, there I want to use the libsvm library in c++ with cmake but it seems I did not set it correct in the CMakeLists.txt. Here is what I did in CMakeLists.txt: ADD_DEFINITIONS(-Wall -O2) #build a shared library ADD_LIBRARY(svm SHARED mytoy.cpp) #for testing the shared library you probably need

[CMake] Visual Studio library link flags

2008-10-04 Thread Simon Sasburg
In my application i have 1 executable target, and a number of static support libaries. Often when linking the support libraries, visual studio gives me the following warning: MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improv