Skip to content

Commit db4a231

Browse files
committed
Add CPPFLAGS to CMake explicitly
Even though CMake is supplied with (via `base/cmake_package.py`) -DCMAKE_PREFIX_PATH="${BOOST_DIR};${BZIP2_DIR};..." For some reason, some of the `-I` statements do not get propagated to g++. If we add the line -DCMAKE_CXX_FLAGS:STRING="${CPPFLAGS}" Then all the necessary `-I` statements are propagated. Note the quotation marks around "${CPPFLAGS}$, those are necessary, since there are spaces in the variable.
1 parent f3c5817 commit db4a231

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkgs/cmb.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ build_stages:
2020
'-DKML_DIR:PATH=${KML_DIR}',
2121
'-DGDAL_DIR:PATH=${GDAL_DIR}',
2222
'-DParaView_DIR:PATH=${PARAVIEW_DIR}',
23-
'-DMoleQueue_DIR:PATH=${MOLEQUEUE_DIR}'
23+
'-DMoleQueue_DIR:PATH=${MOLEQUEUE_DIR}',
24+
'-DCMAKE_CXX_FLAGS:STRING="${CPPFLAGS}"',
2425
]

0 commit comments

Comments
 (0)