With miniz gone, the only reason to still specify both C and CXX
as project languages is the use of the check_include_file cmake
macro.
Turns out there's a C++ version of that one, too; so use it.
# General conveniences
set(CMAKE_AUTOMOC ON)
# General conveniences
set(CMAKE_AUTOMOC ON)
# Include various CMake modules
include(CMakePushCheckState)
include(CheckFunctionExists)
# Include various CMake modules
include(CMakePushCheckState)
include(CheckFunctionExists)
-include(CheckIncludeFile)
+include(CheckIncludeFileCXX)
include(CheckCXXSourceCompiles)
include(CMakeDependentOption)
include(FeatureSummary)
include(CheckCXXSourceCompiles)
include(CMakeDependentOption)
include(FeatureSummary)
# Check for syslog support
if (NOT WIN32)
# Check for syslog support
if (NOT WIN32)
- check_include_file(syslog.h HAVE_SYSLOG)
+ check_include_file_cxx(syslog.h HAVE_SYSLOG)
add_feature_info("syslog.h" HAVE_SYSLOG "Provide support for logging to the syslog")
endif()
add_feature_info("syslog.h" HAVE_SYSLOG "Provide support for logging to the syslog")
endif()