Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9071 from orbea/cmake
cmake: Silence warnings.
  • Loading branch information
leoetlino committed Oct 26, 2020
2 parents 1719e63 + 2bfbc4d commit 23c9179
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMake/FindBlueZ.cmake
Expand Up @@ -6,7 +6,7 @@
#
# vim: expandtab sw=4 ts=4 sts=4:

include(FindPkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules (BlueZ_PKG QUIET bluez)

find_path(BlueZ_INCLUDE_DIR NAMES bluetooth/bluetooth.h
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion CMake/FindLibevdev.cmake → CMake/FindLIBEVDEV.cmake
Expand Up @@ -27,7 +27,7 @@ set(LIBEVDEV_LIBRARIES ${LIBEVDEV_LIBRARY} )
set(LIBEVDEV_INCLUDE_DIRS ${LIBEVDEV_INCLUDE_DIR} )

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(libevdev DEFAULT_MSG
find_package_handle_standard_args(LIBEVDEV DEFAULT_MSG
LIBEVDEV_LIBRARY LIBEVDEV_INCLUDE_DIR)

mark_as_advanced(LIBEVDEV_INCLUDE_DIR LIBEVDEV_LIBRARY )
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion CMake/FindPulseAudio.cmake
Expand Up @@ -6,7 +6,7 @@
#
# vim: expandtab sw=4 ts=4 sts=4:

include(FindPkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules (PulseAudio_PKG QUIET libpulse)

find_path(PulseAudio_INCLUDE_DIR NAMES pulse/pulseaudio.h
Expand Down
3 changes: 2 additions & 1 deletion CMake/FindLibsystemd.cmake → CMake/FindSYSTEMD.cmake
@@ -1,5 +1,6 @@
include(FindPkgConfig)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_SYSTEMD QUIET "libsystemd")

if (PC_SYSTEMD_FOUND)
add_definitions(${PC_SYSTEMD_CFLAGS} ${PC_SYSTEMD_CFLAGS_OTHER})
endif(PC_SYSTEMD_FOUND)
Expand Down
12 changes: 6 additions & 6 deletions CMakeLists.txt
Expand Up @@ -494,8 +494,8 @@ if(OPROFILING)
endif()

if(ENABLE_EVDEV)
find_package(Libudev REQUIRED)
find_package(Libevdev REQUIRED)
find_package(LIBUDEV REQUIRED)
find_package(LIBEVDEV REQUIRED)
if(LIBUDEV_FOUND AND LIBEVDEV_FOUND)
message(STATUS "libevdev/libudev found, enabling evdev controller backend")
add_definitions(-DHAVE_LIBUDEV=1)
Expand Down Expand Up @@ -698,7 +698,7 @@ endif()
add_subdirectory(Externals/soundtouch)
include_directories(Externals/soundtouch)

find_package(Cubeb)
find_package(CUBEB)
if(CUBEB_FOUND)
message(STATUS "Using the system cubeb")
else()
Expand Down Expand Up @@ -740,7 +740,7 @@ endif()

if(USE_UPNP)
if(NOT APPLE)
find_package(Miniupnpc)
find_package(MINIUPNPC)
endif()
if(MINIUPNPC_FOUND AND MINIUPNPC_API_VERSION GREATER 8)
message(STATUS "Using shared miniupnpc")
Expand All @@ -753,7 +753,7 @@ if(USE_UPNP)
endif()

if(NOT APPLE)
find_package(MbedTLS)
find_package(MBEDTLS)
endif()
if(MBEDTLS_FOUND)
message(STATUS "Using shared mbed TLS")
Expand Down Expand Up @@ -808,7 +808,7 @@ if(USE_DISCORD_PRESENCE)
include_directories(Externals/discord-rpc/include)
endif()

find_package(Libsystemd)
find_package(SYSTEMD)
if(SYSTEMD_FOUND)
message(STATUS "libsystemd found, enabling traversal server watchdog support")
add_definitions(-DHAVE_LIBSYSTEMD)
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/CMakeLists.txt
Expand Up @@ -49,7 +49,7 @@ if(ENABLE_PULSEAUDIO)
# PulseAudio ships with a PulseAudioConfig.cmake with no imported target
# So we use our own FindPulseAudio instead with "MODULE"
find_package(PulseAudio MODULE QUIET)
if(PULSEAUDIO_FOUND)
if(PulseAudio_FOUND)
message(STATUS "PulseAudio found, enabling PulseAudio sound backend")
target_sources(audiocommon PRIVATE
PulseAudioStream.cpp
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/CMakeLists.txt
Expand Up @@ -646,7 +646,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
option(ENABLE_BLUEZ "Enables bluetooth support" ON)
if(ENABLE_BLUEZ)
find_package(BlueZ)
if(BLUEZ_FOUND)
if(BlueZ_FOUND)
message(STATUS "BlueZ found, enabling bluetooth support")
target_sources(core PRIVATE
HW/WiimoteReal/IOLinux.cpp
Expand Down

0 comments on commit 23c9179

Please sign in to comment.