Skip to content

Commit

Permalink
S
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jun 23, 2023
1 parent a7073fc commit 5309cda
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ option(ENABLE_COVERAGE "Enable code coverage testing.")
option(ENABLE_SANITIZERS "Enable ASan and other sanitizers.")
option(ENABLE_FUZZERS "Enable fuzz targets.")
option(DOWNLOAD_GTEST "Download Googletest" On)
option(SYSTEM_LIBSEXP "Use system sexp library" OFF)

# crypto components
function(tristate_feature_auto NAME DESCRIPTION)
Expand Down Expand Up @@ -184,18 +183,10 @@ if (ENABLE_FUZZERS)
endif()
add_subdirectory(src/common)

if (SYSTEM_LIBSEXP)
find_package(PkgConfig)
pkg_check_modules(REQUIRED sexp>=0.8.5)
else(SYSTEM_LIBSEXP)
set(WITH_SEXP_CLI OFF)
set(WITH_SEXP_TESTS OFF)
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME development)
set(SAVE_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(src/libsexp EXCLUDE_FROM_ALL)
set(BUILD_SHARED_LIBS ${SAVE_BUILD_SHARED_LIBS})
endif(SYSTEM_LIBSEXP)
set(WITH_SEXP_CLI OFF)
set(WITH_SEXP_TESTS OFF)
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME development)
add_subdirectory(src/libsexp EXCLUDE_FROM_ALL)

add_subdirectory(src/lib)
add_subdirectory(src/rnp)
Expand Down

0 comments on commit 5309cda

Please sign in to comment.