[CMake] Using multiple config names in a single project
Karl Wallner
list at weps.de
Wed Oct 1 14:53:22 EDT 2008
Hi,
I'm using cmake in a project to build different configurations (debug-static,
debug-shared, release-...) of a library out of the same sources. All these
built libraries have to be in a single project as cpack is used to make
binary packages for windows and linux.
In case of the windows platform everything works fine, under linux the
generated binaries are not installed and packed.
For the test case is attached (for cmake 2.6.x):
$ tar xfz debug-and-release.tar.gz
$ mkdir BUILD
$ cd BUILD
$ cmake ../debug-and-release
..
$ make
..
$ make install
[ 33%] Built target bin1
[ 66%] Built target bin2
[100%] Built target bin3
Install the project...
-- Install configuration: ""
-- Installing: /tmp/bin/bin1
Only on of the 3 executables is installed.
If hacked cmake-2.6.2 to do the job as wished. This patch is not perfect:
It would be favourable to make this change configurable.
-- Karl Wallner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug-and-release.tar.gz
Type: application/gzip
Size: 744 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081001/61574ede/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-2.6.2-skip_install_config_name_test.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081001/61574ede/attachment-0001.bin>
More information about the CMake
mailing list