Skip to content

Commit

Permalink
cmake 'OR UNIX'
Browse files Browse the repository at this point in the history
  • Loading branch information
erique committed Feb 21, 2024
1 parent 8294b45 commit 2134e72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(ZLIB_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(external/zlib)
add_subdirectory(external/ADFlib)

if (APPLE OR LINUX)
if (APPLE OR LINUX OR UNIX)
find_package(SDL2 REQUIRED)
endif()

Expand Down Expand Up @@ -209,7 +209,7 @@ add_executable(quaesar
src/adf.cpp
)

if (APPLE OR LINUX)
if (APPLE OR LINUX OR UNIX)
target_compile_options(quaesar PRIVATE -DUAE=1 -D_cdecl= -DFILEFLAG_WRITE=1 -DOS_NAME=\"linux\")
target_compile_options(quaesar PRIVATE -DUSHORT=uint16_t -DHWND=uint32_t -DHRESULT=uint32_t -DWPARAM=uint16_t -DLPARAM=uint32_t)
target_compile_definitions(quaesar PRIVATE FSUAE)
Expand All @@ -232,7 +232,7 @@ if (APPLE)
target_compile_options(quaesar PRIVATE -DFILEFLAG_DIR=1 -DFILEFLAG_DIR=1 -D_ftelli64=ftell -D_fseeki64=fseek -D_fseeko64=fseeko -Dfseeko64=fseeko -Dftello64=ftell)
endif()

if (LINUX)
if (LINUX OR UNIX)
target_compile_options(quaesar PRIVATE -DFILEFLAG_DIR=1 -D_ftelli64=ftello64 -D_fseeki64=fseeko64)
target_link_libraries(quaesar PRIVATE dl)
endif()
Expand Down

0 comments on commit 2134e72

Please sign in to comment.