[CMake] static vs. shared lib with same name
Darby J Van Uitert
darbyb at sci.utah.edu
Wed Sep 13 15:01:02 EDT 2006
Hi,
I am linking against a library that I have as a static and shared
library with the same name (foo.a and foo.so). When I build my project
with BUILD_SHARED_LIBS on, I want it to look for foo.so and when I build
static libs, I want it to link against foo.a. But it seems to always
want to build against the .so unless I specify it directly using the
variable used in the FIND_LIBRARY command. Is there a flag I can set to
tell it to look for static libraries first? Thanks.
-darby j
--
Darby J Van Uitert
SCI Institute
University of Utah
Email: darbyb at sci.utah.edu
Phone: (301) 528-8469
More information about the CMake
mailing list