Skip to content

Commit

Permalink
optional static libraries building
Browse files Browse the repository at this point in the history
  • Loading branch information
nsec1 committed Jun 27, 2024
1 parent 3d7c01a commit c067eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ set(
)

if (BUILD_LIBRARY)
add_library(monero-cpp SHARED ${LIBRARY_SRC_FILES})

option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
add_library(monero-cpp ${LIBRARY_SRC_FILES})

target_include_directories(monero-cpp PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
Expand Down
4 changes: 2 additions & 2 deletions bin/build_libmonero_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ cd ../../
# build libmonero-cpp shared library
mkdir -p build &&
cd build &&
cmake .. &&
cmake $@ .. &&
cmake --build . &&
make .
make .

0 comments on commit c067eb2

Please sign in to comment.