]> git.proxmox.com Git - libgit2.git/commit
CMake: don't overwrite the user's CFLAGS
authorCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 11 Oct 2011 16:08:54 +0000 (18:08 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 11 Oct 2011 16:08:54 +0000 (18:08 +0200)
commit5b216d1a6fc2968fa9f6524663b7647cb1c2a3a4
tree0557b7ccfbfc02d43a43f103dc3e6628b6d23f5b
parentdcd62cb2e9fb9370f5eb17b9984f6dcf8d2598c2
CMake: don't overwrite the user's CFLAGS

If either CFLAGS is defined or the user passes -DCMAKE_C_FLAGS to
cmake, the variable already contains flags. Don't overwrite them, but
append them to our settings.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
CMakeLists.txt