mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
CMake check for AixLog
This commit is contained in:
parent
a3a2b067d3
commit
e9ff66e78b
1 changed files with 11 additions and 5 deletions
|
@ -32,7 +32,10 @@ if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
|
||||||
PATH "Output directory for header files")
|
PATH "Output directory for header files")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories("${CMAKE_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}/externals/asio/asio/include")
|
include_directories("${CMAKE_SOURCE_DIR}"
|
||||||
|
"${CMAKE_SOURCE_DIR}/externals/asio/asio/include"
|
||||||
|
)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
||||||
add_definitions(-DVERSION="${PROJECT_VERSION}")
|
add_definitions(-DVERSION="${PROJECT_VERSION}")
|
||||||
|
|
||||||
|
@ -57,7 +60,7 @@ include(CMakePushCheckState)
|
||||||
include(CheckIncludeFileCXX)
|
include(CheckIncludeFileCXX)
|
||||||
|
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
set (CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES} ${CMAKE_SOURCE_DIR}/externals/asio/asio/include")
|
set (CMAKE_REQUIRED_INCLUDES "${CMAKE_SOURCE_DIR}/externals/asio/asio/include")
|
||||||
check_include_file_cxx(asio.hpp HAS_ASIO_HPP "-pthread -DASIO_STANDALONE -std=c++11")
|
check_include_file_cxx(asio.hpp HAS_ASIO_HPP "-pthread -DASIO_STANDALONE -std=c++11")
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
if(HAS_ASIO_HPP)
|
if(HAS_ASIO_HPP)
|
||||||
|
@ -67,12 +70,15 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_include_file_cxx(popl.hpp HAS_POPL_HPP -std=c++11)
|
check_include_file_cxx(popl.hpp HAS_POPL_HPP -std=c++11)
|
||||||
if(HAS_POPL_HPP)
|
if(NOT HAS_POPL_HPP)
|
||||||
add_definitions("-DHAS_POPL_HPP")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Need to have popl installed")
|
message(FATAL_ERROR "Need to have popl installed")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
check_include_file_cxx(aixlog.hpp HAS_AIXLOG_HPP -std=c++11)
|
||||||
|
if(NOT HAS_AIXLOG_HPP)
|
||||||
|
message(FATAL_ERROR "Need to have aixlog installed")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MACOSX)
|
if(MACOSX)
|
||||||
set(BONJOUR_FOUND true)
|
set(BONJOUR_FOUND true)
|
||||||
# pkg_search_module(BONJOUR REQUIRED bonjour)
|
# pkg_search_module(BONJOUR REQUIRED bonjour)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue