[CMake] Extra built type subdir appeded to LIBRARY_OUTPUT_PATH
Richard Maunder
newsgroup at richardmaunder.com
Fri Mar 31 07:33:30 EST 2006
Yes this was what I meant - but trying to override CMAKE_CFG_INTDIR doesnt
seem to work. I tried:
SET (CMAKE_CFG_INTDIR "newdir")
and
SET(CMAKE_CFG_INTDIR "newdir" CACHE FILEPATH "Appended build dir" FORCE)
Neither of which seem to be alter the VC project. The output lib path under
VC is shown as$LIBRARY_OUTPUT_PATH\$(OutDir)
CMAKE_CFG_INTDIR seems defaulted to "$(OutDir)" - an VS internal variable
which itself is set by Cmake to "Debug" etc - it appears in the VC project
as the Output Directory. And this gets collected before any change in the
Cmake file.
Thanks anyway!
Rick
-----Original Message-----
From: Alexander Neundorf [mailto:a.neundorf-work at gmx.net]
Sent: 31 March 2006 08:47
To: Richard Maunder
Cc: cmake at cmake.org
Subject: Re: [CMake] Extra built type subdir appeded to LIBRARY_OUTPUT_PATH
> --- Ursprüngliche Nachricht ---
> Von: "Richard Maunder" <newsgroup at richardmaunder.com>
> An: <cmake at cmake.org>
> Betreff: [CMake] Extra built type subdir appeded to
> LIBRARY_OUTPUT_PATH
> Datum: Fri, 31 Mar 2006 08:24:14 +0200
>
> Hi,
>
> With MSVS projects, when I set the library or executable output path,
> a built type subdirectory is automatically appended to the output path
> - e.g.
>
> SET(LIBRARY_OUTPUT_PATH R:/lib)
>
> results in a VS .sln with linker output to R:\lib\$(OutDir)\
>
> where OutDir is "debug" / "release" etc. Is there anyway to avoid this
so
> the lib/exe is put in the root LIBRARY_OUTPUT_PATH or should I revert
to a
> custom copy command to move the generated lib?
>
> I'm sure this has come up before - but I can't find any mention on the
> list....
Not sure this is what you mean, but if you specify LIBRARY_OUTPUT_PATH, with
msvc the libs will go to ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}
Bye
Alex
--
Analog-/ISDN-Nutzer sparen mit GMX SmartSurfer bis zu 70%!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
More information about the CMake
mailing list