mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
41a915db9e
Since Ubuntu 22.04 is now our minimum supported Ubuntu version, and it has CMake 3.22, let's make CMake 3.22 the minimum CMake version.
19 lines
702 B
CMake
19 lines
702 B
CMake
cmake_minimum_required(VERSION 3.22...3.25)
|
|
|
|
add_library(blake2 STATIC EXCLUDE_FROM_ALL )
|
|
add_library(OBS::blake2 ALIAS blake2)
|
|
|
|
target_sources(blake2 PRIVATE src/blake2b-ref.c src/blake2.h src/blake2-impl.h)
|
|
|
|
target_include_directories(blake2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
set_source_files_properties(
|
|
src/blake2b-ref.c PROPERTIES COMPILE_OPTIONS
|
|
"$<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-error=implicit-int-conversion>")
|
|
|
|
if(OS_WINDOWS)
|
|
target_compile_options(blake2 PRIVATE $<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
|
target_compile_definitions(blake2 PRIVATE inline=_inline restrict=__restrict)
|
|
endif()
|
|
|
|
set_target_properties(blake2 PROPERTIES FOLDER deps)
|