diff --git a/cmake/find/poco.cmake b/cmake/find/poco.cmake index e749fc27925..99233728152 100644 --- a/cmake/find/poco.cmake +++ b/cmake/find/poco.cmake @@ -1,8 +1,6 @@ option (USE_INTERNAL_POCO_LIBRARY "Use internal Poco library" ON) -if (USE_INTERNAL_POCO_LIBRARY) - set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/poco) -else () +if (NOT USE_INTERNAL_POCO_LIBRARY) find_path (ROOT_DIR NAMES Foundation/include/Poco/Poco.h include/Poco/Poco.h) if (NOT ROOT_DIR) message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find system poco") diff --git a/contrib/poco-cmake/CMakeLists.txt b/contrib/poco-cmake/CMakeLists.txt index fff9051f40f..1d2dc7b873e 100644 --- a/contrib/poco-cmake/CMakeLists.txt +++ b/contrib/poco-cmake/CMakeLists.txt @@ -1,3 +1,5 @@ +set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/poco) + add_subdirectory (Crypto) add_subdirectory (Data) add_subdirectory (Data/ODBC)