[CMake] SET_TARGET_POPERTIES LOCATION for ADD_LIBRARAY
Amit C. Kr. Saluja
aksalujaa at yahoo.com
Thu Nov 15 01:48:38 EST 2007
Hi Alex,
It works with LIBRARY_OUTPUT_DIR. Thanks a lot!!
There is one strange thing I observe, may be a bug or
feature.
If you specify SET_TARGET_PROPERTIES LINK_FLAGS "-L
../../<xyz>" then too cmake puts the SUBDIRS path in
-rpath in Linking. Ideally it should not include
SUBDIRS path in -rpath when -L is specified for
target.
regards
Amit
--- Alexander Neundorf <a.neundorf-work at gmx.net>
wrote:
> On Thursday 15 November 2007, Amit C. Kr. Saluja
> wrote:
> > Hi
> >
> > I am
> > doing
> > ADD_LIBRARY( yourprintf SHARED ${SOURCS})
> > SET_TARGET_PROPERTIES ( yourprintf PROPERTIES
> LOCATION
> > "/home/aks/yourprintf")
> >
> > Its not producing the library @ the LOCATIOn
> > specified.
>
> I thnk you can only read that propery, but not
> change it.
> To have the libs in another location set
> LIBRARY_OUTPUT_DIR
>
> Alex
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the CMake
mailing list