mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
CMake minimum required lowered to 3.1
This commit is contained in:
committed by
Erik de Castro Lopo
parent
d38b867f68
commit
a82a014cf1
@@ -1,16 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
option(ENABLE_64_BIT_WORDS "Set FLAC__BYTES_PER_WORD to 8 (4 is the default)" OFF)
|
||||
option(WITH_XMMS "Build XMMS plugin" OFF)
|
||||
|
||||
check_include_file("iconv.h" HAVE_ICONV_H)
|
||||
|
||||
add_compile_definitions(
|
||||
ENABLE_64_BIT_WORDS=$<BOOL:${ENABLE_64_BIT_WORDS}>
|
||||
FLAC__HAS_OGG=$<BOOL:${OGG_FOUND}>
|
||||
WORDS_BIGENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
|
||||
$<$<BOOL:${HAVE_ICONV_H}>:HAVE_ICONV>
|
||||
$<$<BOOL:${HAVE_SYS_PARAM_H}>:HAVE_SYS_PARAM_H>)
|
||||
check_include_file("iconv.h" HAVE_ICONV)
|
||||
|
||||
add_subdirectory("libFLAC")
|
||||
if(BUILD_CXXLIBS)
|
||||
|
||||
Reference in New Issue
Block a user