mirror of
https://github.com/simple64/simple64.git
synced 2026-11-15 13:19:21 +01:00
update parallel rsp
This commit is contained in:
1 parent
062eabc25e
commit
e0b2774b0f
2 files changed
+7
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
project(parallel-rsp LANGUAGES CXX C)
|
||||
@@ -10,16 +10,11 @@ include_directories(../mupen64plus-core/src/api)
|
||||
add_definitions(-DM64P_PLUGIN_API)
|
||||
add_definitions(-DPARALLEL_INTEGRATION)
|
||||
|
||||
# check for INTERPROCEDURAL_OPTIMIZATION support
|
||||
if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9))
|
||||
cmake_policy(SET CMP0069 NEW)
|
||||
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT ENABLE_IPO)
|
||||
if(ENABLE_IPO)
|
||||
message("Interprocedural optimizations enabled")
|
||||
endif(ENABLE_IPO)
|
||||
endif()
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT ENABLE_IPO)
|
||||
if(ENABLE_IPO)
|
||||
message("Interprocedural optimizations enabled")
|
||||
endif(ENABLE_IPO)
|
||||
|
||||
if(ENABLE_IPO AND (CMAKE_BUILD_TYPE STREQUAL "Release"))
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
project (mman-win32 C)
|
||||
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
cmake_minimum_required (VERSION 3.20)
|
||||
|
||||
option (BUILD_SHARED_LIBS "shared/static libs" ON)
|
||||
option (BUILD_TESTS "tests?" OFF)
|
||||
|
||||
Reference in new issue
Block a user