mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-03 15:25:43 +00:00
cmake: use add_definitions for compatibility with cmake 3.0
This commit is contained in:
parent
9914e87faa
commit
d460000b45
|
@ -59,7 +59,7 @@ include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
|
||||||
# with large inode numbers
|
# with large inode numbers
|
||||||
check_symbol_exists("__GLIBC__" "stdlib.h" LIBC_IS_GLIBC)
|
check_symbol_exists("__GLIBC__" "stdlib.h" LIBC_IS_GLIBC)
|
||||||
if (LIBC_IS_GLIBC AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
if (LIBC_IS_GLIBC AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
add_compile_definitions(PRIVATE _FILE_OFFSET_BITS=64)
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# See docs/release_checklist.md
|
# See docs/release_checklist.md
|
||||||
|
|
Loading…
Reference in a new issue