From 816bc69eb5d66ae0516f2ebc16480c5bc4ce471f Mon Sep 17 00:00:00 2001 From: yingsu00 Date: Sat, 21 Sep 2024 01:20:36 -0700 Subject: [PATCH] Fix duckdb build failure Upgrade FBOS dependencies to 2024.09.16.00 installs all dependencies in deps-install subfolder, and set the include directory to it in front of other include directories. This caused duckdb build failed with "error: use of undeclared identifier 'FMT_SNPRINTF'". This commit removes the BEFORE keyword to fix the problem. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b0d3a67c21c..7cd52ad0e164 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ if(DEFINED ENV{INSTALL_PREFIX}) list(APPEND CMAKE_PREFIX_PATH "$ENV{INSTALL_PREFIX}") # Allow installed package headers to be picked up before brew/system package # headers - include_directories(BEFORE "$ENV{INSTALL_PREFIX}/include") + include_directories("$ENV{INSTALL_PREFIX}/include") endif() list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake"