Commit 47fad95d authored by Ghislain MARY's avatar Ghislain MARY

Clean some CMake scripts.

parent 10d64b90
......@@ -29,13 +29,8 @@
include(CheckSymbolExists)
include(CMakePushCheckState)
set(_ALSA_ROOT_PATHS
${CMAKE_INSTALL_PREFIX}
)
find_path(ALSA_INCLUDE_DIRS
NAMES alsa/asoundlib.h
HINTS _ALSA_ROOT_PATHS
PATH_SUFFIXES include
)
if(ALSA_INCLUDE_DIRS)
......@@ -44,8 +39,7 @@ endif()
find_library(ALSA_LIBRARIES
NAMES asound
HINTS _ALSA_ROOT_PATHS
PATH_SUFFIXES bin lib
PATH_SUFFIXES lib
)
if(ALSA_LIBRARIES)
......
......@@ -26,13 +26,8 @@
# X11_INCLUDE_DIRS - the X11 include directory
# X11_LIBRARIES - The libraries needed to use X11
set(_X11_ROOT_PATHS
${CMAKE_INSTALL_PREFIX}
)
find_path(X11_INCLUDE_DIRS
NAMES X11/Xlib.h
HINTS _X11_ROOT_PATHS
PATH_SUFFIXES include
)
if(X11_INCLUDE_DIRS)
......@@ -41,8 +36,7 @@ endif()
find_library(X11_LIBRARIES
NAMES X11
HINTS _X11_ROOT_PATHS
PATH_SUFFIXES bin lib
PATH_SUFFIXES lib
)
include(FindPackageHandleStandardArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment