mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Several little things.
The C version of the GenericLog was being used in both C and C++ branches of the code. Parent panic alerts by the main_frame so that those windows get the icon too. Fix a couple of compiler warnings. Added some checks for libraries in the cmake build. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6385 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
19
CMakeTests/CheckLib.cmake
Normal file
19
CMakeTests/CheckLib.cmake
Normal file
@ -0,0 +1,19 @@
|
||||
macro(check_lib var lib required)
|
||||
pkg_search_module(${var} ${lib})
|
||||
if(${var}_FOUND)
|
||||
message("${lib} found")
|
||||
else()
|
||||
find_library(${var} ${lib})
|
||||
if(${var})
|
||||
message("${lib} found")
|
||||
set(${var}_FOUND 1 CACHE INTERNAL "")
|
||||
else()
|
||||
if(${required})
|
||||
message(FATAL_ERROR "${lib} is required but not found")
|
||||
else()
|
||||
message("${lib} not found")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
|
Reference in New Issue
Block a user