Skip to content

Commit 03b7ad5

Browse files
CMake: updated xxHash options
1 parent 22433c6 commit 03b7ad5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ThirdParty/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,8 @@ if ((${DILIGENT_BUILD_GOOGLE_TEST}) AND (NOT TARGET gtest))
205205
endif()
206206

207207
if (NOT TARGET xxHash::xxhash)
208-
option(BUILD_SHARED_LIBS "Build shared library" OFF)
209-
set(XXHASH_BUILD_XXHSUM OFF)
210-
set(XXHASH_BUILD_ENABLE_INLINE_API OFF)
208+
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build xxHash as dynamic library")
209+
set(XXHASH_BUILD_XXHSUM OFF CACHE BOOL "Build the xxhsum binary")
211210
add_subdirectory(xxHash/build/cmake)
212211
set_directory_root_folder("xxHash/build/cmake" "DiligentCore/ThirdParty/xxHash")
213212
install(FILES "${xxHash_SOURCE_DIR}/../../LICENSE" DESTINATION "Licenses/ThirdParty/${DILIGENT_CORE_DIR}" RENAME xxHash-License.txt)

0 commit comments

Comments
 (0)