File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ build_cmakeninja_configure() {
1818 fi
1919 BUILD_START
2020
21+ # NOTE: CMake does not add ENV{CPPFLAGS} to
22+ # CMAKE_${LANGUAGE}_FLAGS_INIT. We must either patch CMake or add
23+ # CPPFLAGS to CFLAGS and CXXFLAGS manually.
24+ export CFLAGS=" $CPPFLAGS $CFLAGS "
25+ export CXXFLAGS=" $CPPFLAGS $CXXFLAGS "
2126 abinfo " Running CMakeLists.txt to generate Ninja Configuration ..."
22- ab_tostringarray CMAKE_AFTER
27+ ab_tostringarray CMAKE_AFTER
2328 cmake " $SRCDIR " " ${CMAKE_DEF[@]} " " ${CMAKE_AFTER[@]} " -GNinja \
2429 || abdie " Failed to run CMakeLists.txt: $? ."
2530}
Original file line number Diff line number Diff line change @@ -16,10 +16,15 @@ build_cmake_configure() {
1616 || abdie " Failed to enter shadow build directory: $? ."
1717 fi
1818
19- BUILD_START
19+ BUILD_START
2020
21+ # NOTE: CMake does not add ENV{CPPFLAGS} to
22+ # CMAKE_${LANGUAGE}_FLAGS_INIT. We must either patch CMake or add
23+ # CPPFLAGS to CFLAGS and CXXFLAGS manually.
24+ export CFLAGS=" $CPPFLAGS $CFLAGS "
25+ export CXXFLAGS=" $CPPFLAGS $CXXFLAGS "
2126 abinfo " Running CMakeLists.txt to generate Makefile ..."
22- ab_tostringarray CMAKE_AFTER
27+ ab_tostringarray CMAKE_AFTER
2328 cmake " $SRCDIR " " ${CMAKE_DEF[@]} " " ${CMAKE_AFTER[@]} " \
2429 || abdie " Failed to run CMakeLists.txt: $? ."
2530}
You can’t perform that action at this time.
0 commit comments