mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
[Android] Enable the ability to find OpenMP on Android...which isn't used in the generic texture decoder so no win.
This commit is contained in:
parent
f292819ff5
commit
13578dc0b3
@ -332,6 +332,20 @@ add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
|
|||||||
# externals.
|
# externals.
|
||||||
include(CheckLib)
|
include(CheckLib)
|
||||||
include(CheckCXXSourceRuns)
|
include(CheckCXXSourceRuns)
|
||||||
|
|
||||||
|
if(OPENMP)
|
||||||
|
include(FindOpenMP OPTIONAL)
|
||||||
|
if(OPENMP_FOUND)
|
||||||
|
message("OpenMP parallelization enabled")
|
||||||
|
add_definitions("${OpenMP_CXX_FLAGS}")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if(NOT OPENMP_FOUND)
|
||||||
|
add_definitions(-Wno-unknown-pragmas)
|
||||||
|
message("OpenMP parallelization disabled")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
|
|
||||||
include(FindOpenGL)
|
include(FindOpenGL)
|
||||||
@ -339,20 +353,7 @@ if(NOT ANDROID)
|
|||||||
if(NOT OPENGL_GLU_FOUND)
|
if(NOT OPENGL_GLU_FOUND)
|
||||||
message(FATAL_ERROR "GLU is required but not found")
|
message(FATAL_ERROR "GLU is required but not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENMP)
|
|
||||||
include(FindOpenMP OPTIONAL)
|
|
||||||
if(OPENMP_FOUND)
|
|
||||||
message("OpenMP parallelization enabled")
|
|
||||||
add_definitions("${OpenMP_CXX_FLAGS}")
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
if(NOT OPENMP_FOUND)
|
|
||||||
add_definitions(-Wno-unknown-pragmas)
|
|
||||||
message("OpenMP parallelization disabled")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(FindALSA OPTIONAL)
|
include(FindALSA OPTIONAL)
|
||||||
if(ALSA_FOUND)
|
if(ALSA_FOUND)
|
||||||
add_definitions(-DHAVE_ALSA=1)
|
add_definitions(-DHAVE_ALSA=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user