Skip to content

Commit 4dee9ff

Browse files
committed
fix: Removed dependency on the C++ standard library.
1 parent 2199be0 commit 4dee9ff

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1717
set(CMAKE_CXX_EXTENSIONS OFF)
1818

1919
# Build static and dynamic lib written in Rust by invoking `cargo`.
20-
include(FetchContent)
21-
FetchContent_Declare(
22-
Corrosion
23-
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
24-
GIT_TAG v0.2.1)
25-
FetchContent_MakeAvailable(Corrosion)
20+
add_subdirectory(corrosion)
2621
corrosion_import_crate(
2722
MANIFEST_PATH Cargo.toml
28-
FEATURES ffi)
23+
FEATURES ffi
24+
LINKER_LANGUAGE C)
2925
target_include_directories(
3026
questdb_client INTERFACE
3127
${CMAKE_CURRENT_SOURCE_DIR}/include)

0 commit comments

Comments
 (0)