Skip to content

Commit f4131d3

Browse files
committed
build: Added explicit BUILD_SHARED_LIBS option in CMake.
1 parent 35c8a2c commit f4131d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ set(CMAKE_CXX_STANDARD 17)
1616
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1717
set(CMAKE_CXX_EXTENSIONS OFF)
1818

19+
option(
20+
BUILD_SHARED_LIBS
21+
"Build shared library dependencies instead of static."
22+
OFF)
23+
1924
# Build static and dynamic lib written in Rust by invoking `cargo`.
2025
add_subdirectory(corrosion)
2126
corrosion_import_crate(

0 commit comments

Comments
 (0)