Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
On Fri, 2011-11-18 at 22:49 +0100, Michael Wild wrote: > Sorry, I misread the documentation myself. You need multiple install() > commands, for each configuration one, but after each DESTINATION option > you also need the COMPONENTS option. So, this would be something like this: > > install(TARGET

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Michael Wild
Sorry, I misread the documentation myself. You need multiple install() commands, for each configuration one, but after each DESTINATION option you also need the COMPONENTS option. So, this would be something like this: install(TARGETS first ARCHIVE DESTINATION lib/release CONFIGURATIONS Release

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
Using the single command will place the release libraries into the lib/release directory when using the -C Release flag with CPack. If I do -C Debug flag with CPack then the PDB files are installed to lib/debug but the libraries are installed to lib/release. Any reason why this single command would

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-17 Thread Michael Wild
On 11/17/2011 06:12 PM, Stephen Torri wrote: > CMake Version: 2.8 > > Generator: Visual Studio 2008 > > Problem: Two install commands are used per library. First command > should only install libraries to lib/debug when the build type is > Debug. The second command should only install libraries t

[CMake] Install command incorrectly installing archive libraries

2011-11-17 Thread Stephen Torri
CMake Version: 2.8 Generator: Visual Studio 2008 Problem: Two install commands are used per library. First command should only install libraries to lib/debug when the build type is Debug. The second command should only install libraries to the lib/release directory. When the build type is Debug t