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

Clean some CMake scripts.

parent 10d64b90
...@@ -29,13 +29,8 @@ ...@@ -29,13 +29,8 @@
include(CheckSymbolExists) include(CheckSymbolExists)
include(CMakePushCheckState) include(CMakePushCheckState)
set(_ALSA_ROOT_PATHS
${CMAKE_INSTALL_PREFIX}
)
find_path(ALSA_INCLUDE_DIRS find_path(ALSA_INCLUDE_DIRS
NAMES alsa/asoundlib.h NAMES alsa/asoundlib.h
HINTS _ALSA_ROOT_PATHS
PATH_SUFFIXES include PATH_SUFFIXES include
) )
if(ALSA_INCLUDE_DIRS) if(ALSA_INCLUDE_DIRS)
...@@ -44,8 +39,7 @@ endif() ...@@ -44,8 +39,7 @@ endif()
find_library(ALSA_LIBRARIES find_library(ALSA_LIBRARIES
NAMES asound NAMES asound
HINTS _ALSA_ROOT_PATHS PATH_SUFFIXES lib
PATH_SUFFIXES bin lib
) )
if(ALSA_LIBRARIES) if(ALSA_LIBRARIES)
......
...@@ -26,13 +26,8 @@ ...@@ -26,13 +26,8 @@
# X11_INCLUDE_DIRS - the X11 include directory # X11_INCLUDE_DIRS - the X11 include directory
# X11_LIBRARIES - The libraries needed to use X11 # X11_LIBRARIES - The libraries needed to use X11
set(_X11_ROOT_PATHS
${CMAKE_INSTALL_PREFIX}
)
find_path(X11_INCLUDE_DIRS find_path(X11_INCLUDE_DIRS
NAMES X11/Xlib.h NAMES X11/Xlib.h
HINTS _X11_ROOT_PATHS
PATH_SUFFIXES include PATH_SUFFIXES include
) )
if(X11_INCLUDE_DIRS) if(X11_INCLUDE_DIRS)
...@@ -41,8 +36,7 @@ endif() ...@@ -41,8 +36,7 @@ endif()
find_library(X11_LIBRARIES find_library(X11_LIBRARIES
NAMES X11 NAMES X11
HINTS _X11_ROOT_PATHS PATH_SUFFIXES lib
PATH_SUFFIXES bin lib
) )
include(FindPackageHandleStandardArgs) 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