[CMake] Windows library target names

Olaf van der Spek olafvdspek at gmail.com
Thu Jul 22 16:38:36 EDT 2010


On Thu, Jul 22, 2010 at 10:32 PM, Ryan Pavlik <rpavlik at iastate.edu> wrote:
> Unfortunately there are as many ways to denote these differences as there
> are projects. However, unless you're setting the ARCHIVE_OUTPUT_DIRECTORY,
> LIBRARY_OUTPUT_DIRECTORY, or RUNTIME_OUTPUT_DIRECTORY (and if you are, I
> highly suggest not doing so and instead installing as-needed to a local
> prefix), the files should not collide in the build tree - in a multi-config
> generator like MSVC, each target gets a directory for each build type, and
> in a single-config generator you'll only have one build type per entire
> build tree.

And then what? Having two DLLs with the same name is not going to
work. Same for import or static libs.

What about libs that don't have a naming scheme yet? Is there any
recommended way to do this stuff?

Olaf


More information about the CMake mailing list