[CMake] Extra built type subdir appeded to
LIBRARY_OUTPUT_PATH
William A. Hoffman
billlist at nycap.rr.com
Fri Mar 31 08:40:27 EST 2006
At 07:33 AM 3/31/2006, Richard Maunder wrote:
>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.
You can not change CMAKE_CFG_INTDIR. If you want to create new configurations,
you want to set this one: CMAKE_CONFIGURATION_TYPES. But make sure you
define CMAKE_C_FLAGS_* where the * matches all of the names used in
CMAKE_CONFIGURATION_TYPES.
-Bill
More information about the CMake
mailing list