mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
17662d4ac6
Add a check to see if -Wno-unused-result is supported by the compiler. Fix some compiler warnings in the wiiuse code. Fix a bug in the wxGTK panic alert code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6399 8ced0084-cf51-0410-be5f-012b33b47a6e
20 lines
423 B
CMake
20 lines
423 B
CMake
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} STREQUAL "REQUIRED")
|
|
message(FATAL_ERROR "${lib} is required but not found")
|
|
else()
|
|
message("${lib} not found")
|
|
endif()
|
|
endif()
|
|
endif()
|
|
endmacro()
|
|
|