mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-11-24 07:25:31 +00:00
Remove librt which isn't available on macOS
inconsequential cmake edits as well
This commit is contained in:
parent
afde6771c3
commit
a343665035
@ -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)
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user