Remove librt which isn't available on macOS

inconsequential cmake edits as well
This commit is contained in:
CharlesThobe 2022-01-06 04:18:59 +02:00
parent afde6771c3
commit a343665035
3 changed files with 3 additions and 3 deletions

View File

@ -53,4 +53,4 @@ target_compile_definitions(chdman PRIVATE
)
target_link_libraries(chdman PRIVATE utils expat 7z ocore_sdl zlib flac utf8proc
dl rt m pthread util)
dl m pthread util)

View File

@ -14,7 +14,7 @@ if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function -O0")
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") #fixme: or android
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-enum-conversion")
endif()

View File

@ -1,7 +1,7 @@
#zlib
set(zlib_dir ${CMAKE_SOURCE_DIR}/3rdparty/zlib)
if(CMAKE_C_COMPILER_ID STREQUAL "Clang") #fixme: or android
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-shift-negative-value")
endif()