mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 14:41:33 +00:00
CMake: Pass build type CFLAGS to header generator.
This commit is contained in:
@@ -88,7 +88,8 @@ get_directory_property(gen_includes INCLUDE_DIRECTORIES)
|
||||
foreach(gen_include ${gen_includes})
|
||||
set(gen_cflags "${gen_cflags} -I${gen_include}")
|
||||
endforeach()
|
||||
set(gen_cflags "${gen_cflags} ${CMAKE_C_FLAGS}")
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" _build_type)
|
||||
set(gen_cflags "${gen_cflags} ${CMAKE_C_FLAGS_${_build_type}} ${CMAKE_C_FLAGS}")
|
||||
|
||||
foreach(sfile ${NEOVIM_SOURCES}
|
||||
"${PROJECT_SOURCE_DIR}/src/nvim/regexp_nfa.c")
|
||||
|
||||
Reference in New Issue
Block a user