diff --git a/chsql/CMakeLists.txt b/chsql/CMakeLists.txt index 845c883..3c8db31 100644 --- a/chsql/CMakeLists.txt +++ b/chsql/CMakeLists.txt @@ -7,7 +7,7 @@ set(TARGET_NAME chsql) project(${TARGET_NAME}) -if(DUCKDB_EXPLICIT_PLATFORM MATCHES "linux_arm64") +if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") set(ARCH_FLAGS "-march=armv8-a") endif() @@ -17,7 +17,7 @@ ExternalProject_Add(clickhouse_cpp_external CMAKE_ARGS -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} - -DCMAKE_CXX_FLAGS=-fPIC ${ARCH_FLAGS} + "-DCMAKE_CXX_FLAGS=-fPIC ${ARCH_FLAGS}" -DCMAKE_C_FLAGS=${ARCH_FLAGS} INSTALL_COMMAND "" # Skip install step BUILD_BYPRODUCTS