Did you try to give the whole path to the lib instead of seperate library name and path?
Can that be done without writing the lib suffix explicitly (not cross- platform)?
And since you build the lib yourself with a cmake TARGET, the TARGET name should be used as link dependency.
I don't see what you mean, could you make this explicit please? Does this have something to do with the INSTALL statement? If not, it is the online example that should be changed.
OTOH: why do you shoot yourself in the foot and define linker flags that do not express what you actually want?
I defined linker flags that express what I want. I have software installed in non-standard directories like /sw/lib and /usr/local/lib, and I do want CMake to look there (cf. LDFLAGS). However, I want CMake to look in the local directory *first* to link the executable helloDemo against the lib Hello that has just been built. Thanks for your help, Renaud. _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
