mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
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:
parent
5eef243ab6
commit
646a140ed4
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
project(spdlog VERSION 0.16.3)
|
project(spdlog VERSION 0.16.3 LANGUAGES CXX)
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
@ -73,7 +73,6 @@ configure_file("cmake/spdlog.pc.in" "${pkg_config}" @ONLY)
|
|||||||
install(
|
install(
|
||||||
TARGETS spdlog
|
TARGETS spdlog
|
||||||
EXPORT "${targets_export_name}"
|
EXPORT "${targets_export_name}"
|
||||||
INCLUDES DESTINATION "${include_install_dir}"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# install headers
|
# install headers
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
# *************************************************************************/
|
# *************************************************************************/
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(SpdlogExamples)
|
project(SpdlogExamples CXX)
|
||||||
|
|
||||||
if(TARGET spdlog)
|
if(TARGET spdlog)
|
||||||
# Part of the main project
|
# Part of the main project
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
project(spdlog-utests)
|
project(spdlog-utests CXX)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
Loading…
Reference in New Issue
Block a user