Bug 557: config.h misses INSTALL_SUBDIR_* variables on first cmake run
authorFlorian Forster <supertux@octo.it>
Sat, 30 Jan 2010 11:08:04 +0000 (11:08 +0000)
committerFlorian Forster <supertux@octo.it>
Sat, 30 Jan 2010 11:08:04 +0000 (11:08 +0000)
commit8b1192b6a6c6f69b95a753d83e0c64851410c554
treefca35147b221f8943de92501d3e59ca5de0a8752
parentec643f2c42dc674ba042e3539eeac29204de664e
Bug 557: config.h misses INSTALL_SUBDIR_* variables on first cmake run

The first time cmake runs in a new supertux build tree, config.h is generated
before the INSTALL_SUBDIR_{BIN,SHARE} variables are set and thus contains empty
values for these variables. If the executable is built right away and run, it
crashes because it cannot find the data files.

Resolves #557. Thanks to Matt McCutchen for this patch.

SVN-Revision: 6293
CMakeLists.txt