[CMake] Help with Policy CMP0026 (disallow LOCATION target property)

Paul Smith paul at mad-scientist.net
Wed Dec 24 08:08:36 EST 2014


On Tue, 2014-12-23 at 21:32 +0000, Parag Chandra wrote:
> Have you tried the CMake variables LIBRARY_OUTPUT_PATH and
> EXECUTABLE_OUTPUT_PATH? I¹ve been using them to accomplish much the
> same thing.

Well, I don't want ALL my executables and libraries to go into these
locations.  Only specific ones.  However, I see that there's a target
property RUNTIME_OUTPUT_DIRECTORY, etc. so maybe setting that property
would be an option.

When I first started messing with this cmake environment we had a batch
of scripts, etc. that were using the original location so I really
needed things to live in both locations, for backward compatibility.
But at this point I'm pretty sure no one uses the original locations
anymore so this could work.  I'll look into it.



More information about the CMake mailing list