]> granicus.if.org Git - gc/commit
Fix passing CFLAGS_EXTRA to compiler in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Tue, 30 Jul 2019 23:01:57 +0000 (02:01 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 30 Jul 2019 23:03:03 +0000 (02:03 +0300)
commite329ab91b3692fdb87c631f1dc4750559381e67f
tree794bdfbfc552ef7933796cdbc10fc31d98d5612c
parent67ac54c555d5d44a9ec5414d2bcde0ea72748199
Fix passing CFLAGS_EXTRA to compiler in CMake script
(fix of commit b6ac6a5a4)

The previous solution does not work for MS VC target.

* CMakeLists.txt [CFLAGS_EXTRA] (CMAKE_C_FLAGS, CMAKE_CXX_FLAGS): Do
not set.
* CMakeLists.txt [CFLAGS_EXTRA]: Pass $(CFLAGS_EXTRA) to
add_compile_options.
CMakeLists.txt