mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Compile Unix Public release with -O2
This commit is contained in:
parent
ef61361b87
commit
9f4af5c5f1
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ if (MSVC)
|
||||||
message(STATUS "Using additional optimization flags for MSVC")
|
message(STATUS "Using additional optimization flags for MSVC")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Oi /Ot") # enable intrinsic functions, favor speed
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Oi /Ot") # enable intrinsic functions, favor speed
|
||||||
endif()
|
endif()
|
||||||
|
elseif(UNIX)
|
||||||
|
if (PUBLIC_RELEASE)
|
||||||
|
message(STATUS "Compiling with -O2 optimizations")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
|
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue