From dbfb8d48849e6c9582141262527fd2f40464d92c Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Wed, 1 Jun 2016 09:51:41 +0200 Subject: [PATCH] Revert to the previous way of handling OpenAL. The reason was to find alext.h but that reason has gone by copying a small number of defines --- CMakeLists.txt | 2 +- CMakeModules/FindOpenAL.cmake | 59 ----------------------------------- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 CMakeModules/FindOpenAL.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 0721332c..76774923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -385,7 +385,7 @@ include_directories(BEFORE ${PROJECT_BINARY_DIR}/simgear) include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} - ${OPENAL_INCLUDE_DIRS} + ${OPENAL_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ) diff --git a/CMakeModules/FindOpenAL.cmake b/CMakeModules/FindOpenAL.cmake deleted file mode 100644 index d86bef2f..00000000 --- a/CMakeModules/FindOpenAL.cmake +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright Matus Chochlik. -# Distributed under the Boost Software License, Version 1.0. -# See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt -# -# 2016-05-30: Updated for FlightGear --EMH-- -# -unset(OPENAL_INCLUDE_DIRS) -set(OPENAL_FOUND 0) -# -# try to find AL/al.h -find_path( - OPENAL_AL_H_DIR AL/al.h - PATHS ${HEADER_SEARCH_PATHS} - NO_DEFAULT_PATH -) -# if that didn't work try the system directories -if((NOT OPENAL_AL_H_DIR) OR (NOT EXISTS ${OPENAL_AL_H_DIR})) - find_path(OPENAL_AL_H_DIR AL/al.h) -endif() -# if found append it to the include directories -if((OPENAL_AL_H_DIR) AND (EXISTS ${OPENAL_AL_H_DIR})) - set(OPENAL_INCLUDE_DIRS ${OPENAL_INCLUDE_DIRS} ${OPENAL_AL_H_DIR}) - set(HAVE_AL_H true) - set(OPENAL_FOUND 1) -endif() -# -# -# try to find AL/alext.h -find_path( - OPENAL_ALEXT_H_DIR AL/alext.h - PATHS ${HEADER_SEARCH_PATHS} - NO_DEFAULT_PATH -) -# if that didn't work try the system directories -if((NOT OPENAL_ALEXT_H_DIR) OR (NOT EXISTS ${OPENAL_ALEXT_H_DIR})) - find_path(OPENAL_ALEXT_H_DIR AL/alext.h) -endif() -# -if((OPENAL_ALEXT_H_DIR) AND (EXISTS ${OPENAL_ALEXT_H_DIR})) - set(OPENAL_INCLUDE_DIRS ${OPENAL_INCLUDE_DIRS} ${OPENAL_ALEXT_H_DIR}) - set(HAVE_ALEXT_H true) -endif() - -# try to find the AL library -find_library( - OPENAL_LIBRARY NAMES openal - PATHS ${LIBRARY_SEARCH_PATHS} - NO_DEFAULT_PATH -) -if(NOT OPENAL_LIBRARY) - find_library(OPENAL_LIBRARY NAMES openal) -endif() - -set(OPENAL_LIBRARIES "") -if(OPENAL_LIBRARY AND EXISTS ${OPENAL_LIBRARY}) - set(OPENAL_LIBRARIES ${OPENAL_LIBRARIES} ${OPENAL_LIBRARY}) -endif() - -- 2.39.5