build: ensure BUILD_SHARED_LIBS is always set to either ON or OFF

This commit is contained in:
Marcus Holland-Moritz 2024-05-06 14:01:32 +02:00
parent ce4bee1ad6
commit 08b2a8f327

View File

@ -86,6 +86,10 @@ else()
set(XXHASH_GIT_REPO https://github.com/Cyan4973/xxHash.git)
endif()
if(NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS OFF)
endif()
if(NOT DISABLE_CCACHE)
find_program(CCACHE_EXE ccache ccache.exe PATHS "c:/bin")
if(CCACHE_EXE)