Skip to content

Commit

Permalink
Fix cmake build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Jan 10, 2025
1 parent 86df3b5 commit 3c6bbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_vol_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ while getopts "$optspec" optchar; do
echo "Using the static YAJL library."
echo
;;
c) CMAKE_C_FLAGS="/DCURL_STATICLIB"
u) CURL_LIB_OPT="-DCURL_STATICLIB"
echo "Using the static cURL library."
echo
;;
Expand Down Expand Up @@ -195,7 +195,7 @@ rm -f "${BUILD_DIR}/CMakeCache.txt"

cd "${BUILD_DIR}"

CFLAGS="-D_POSIX_C_SOURCE=200809L" cmake -G "${CMAKE_GENERATOR}" "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}" "-DHDF5_ROOT=${HDF5_INSTALL_DIR}" -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" "${CURL_OPT}" "${YAJL_OPT}" "${YAJL_LIB_OPT}" "${CONNECTOR_DEBUG_OPT}" "${CURL_DEBUG_OPT}" "${MEM_TRACK_OPT}" "${THREAD_SAFE_OPT}" "${SCRIPT_DIR}"
CFLAGS="-D_POSIX_C_SOURCE=200809L" cmake -G "${CMAKE_GENERATOR}" "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}" "-DHDF5_ROOT=${HDF5_INSTALL_DIR}" -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" "${CURL_OPT}" "${CURL_LIB_OPT}" "${YAJL_OPT}" "${YAJL_LIB_OPT}" "${CONNECTOR_DEBUG_OPT}" "${CURL_DEBUG_OPT}" "${MEM_TRACK_OPT}" "${THREAD_SAFE_OPT}" "${SCRIPT_DIR}"

echo "Build files have been generated for CMake generator '${CMAKE_GENERATOR}'"

Expand Down

0 comments on commit 3c6bbf9

Please sign in to comment.