mirror of
https://github.com/sarah-walker-pcem/pcem.git
synced 2025-07-23 03:33:02 +02:00
13 lines
493 B
CMake
13 lines
493 B
CMake
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
|
list(LENGTH SDL2_INCLUDE_DIRS SDL2_INCLUDE_DIRS_LEN)
|
|
if (SDL2_INCLUDE_DIRS_LEN EQUAL 1)
|
|
get_filename_component(SDL2_INCLUDE_PARENT_DIR ${SDL2_INCLUDE_DIRS} DIRECTORY)
|
|
include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_INCLUDE_PARENT_DIR})
|
|
endif()
|
|
add_compile_definitions(HAVE_UNISTD_H)
|
|
|
|
add_compile_definitions(fseeko64=fseeko off64_t=off_t fopen64=fopen ftello64=ftell)
|
|
endif()
|
|
|