diff --git a/deps/oblib/src/CMakeLists.txt b/deps/oblib/src/CMakeLists.txt index 2f3d48e078..540df4b689 100644 --- a/deps/oblib/src/CMakeLists.txt +++ b/deps/oblib/src/CMakeLists.txt @@ -18,8 +18,6 @@ target_include_directories( ${DEP_DIR}/include ${DEP_DIR}/include/libxml2 ${DEVTOOLS_DIR} - ${DEP_3RD_DIR}/usr/local/include - ${DEP_3RD_DIR}/usr/include/ ${DEP_DIR}/include/apr-1/ ${DEP_DIR}/include/icu/common ${DEP_DIR}/include/apache-arrow @@ -31,6 +29,12 @@ if(OB_BUILD_OPENSOURCE) oblib_base_base_base INTERFACE ${DEP_DIR}/include/mariadb ) +else() + target_include_directories( + oblib_base_base_base INTERFACE + ${DEP_3RD_DIR}/usr/local/include + ${DEP_3RD_DIR}/usr/include/ + ) endif() if(OB_BUILD_SPM)