summaryrefslogtreecommitdiffstats
path: root/contrib/xxhash/CMakeLists.txt
blob: 41c05d4e9fb3fc7a744be4813a66e9b7bcbb00f5 (plain)
1
2
3
4
5
6
SET(XXHASHSRC xxhash.c)

if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
endif ()
ADD_LIBRARY(xxhash STATIC ${XXHASHSRC})