mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
Disabled an obsolete linker flag on macOS.
This commit is contained in:
parent
fe4bb0b7e9
commit
8155931edd
|
@ -134,7 +134,11 @@ else()
|
||||||
# Enable the C++11 standard and enable optimizations as it's a release build.
|
# Enable the C++11 standard and enable optimizations as it's a release build.
|
||||||
# This will also disable all assert() macros. Strip the binary as well.
|
# This will also disable all assert() macros. Strip the binary as well.
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -DNDEBUG")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -DNDEBUG")
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2")
|
||||||
|
else()
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2 -s")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2 -s")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This removes half of the ranlib warnings on macOS regarding no symbols for files that
|
# This removes half of the ranlib warnings on macOS regarding no symbols for files that
|
||||||
|
|
Loading…
Reference in a new issue