Specify CXX language explicitly in CMake

Marking project as CXX will disable detecting C compiler and other checks.
Removed 'INCLUDES DESTINATION' as it made the include path appear doubled.
This commit is contained in:
Daniel Chabrowski
2018-02-11 20:45:56 +01:00
parent 5eef243ab6
commit 646a140ed4
3 changed files with 73 additions and 74 deletions

View File

@@ -4,7 +4,7 @@
#
cmake_minimum_required(VERSION 3.1)
project(spdlog VERSION 0.16.3)
project(spdlog VERSION 0.16.3 LANGUAGES CXX)
include(CTest)
include(CMakeDependentOption)
include(GNUInstallDirs)
@@ -73,7 +73,6 @@ configure_file("cmake/spdlog.pc.in" "${pkg_config}" @ONLY)
install(
TARGETS spdlog
EXPORT "${targets_export_name}"
INCLUDES DESTINATION "${include_install_dir}"
)
# install headers