[nfde] Make only option BUILD_SHARED_LIBS if not already set

This commit is contained in:
Gary Talent 2024-05-31 19:52:55 -05:00
parent 6ddb6b42ed
commit 3fba36b4a8

View File

@ -6,7 +6,9 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(nfd_ROOT_PROJECT ON)
endif ()
if(NOT DEFINED BUILD_SHARED_LIBS)
option(BUILD_SHARED_LIBS "Build a shared library instead of static" OFF)
endif()
option(NFD_BUILD_TESTS "Build tests for nfd" ${nfd_ROOT_PROJECT})
option(NFD_INSTALL "Generate install target for nfd" ${nfd_ROOT_PROJECT})