Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/files/
Date: Tue, 09 Jan 2018 02:04:14
Message-Id: 1515432353.d081341290444856a0cf2fc988310dc4a38acd88.candrews@gentoo
1 commit: d081341290444856a0cf2fc988310dc4a38acd88
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 7 08:01:36 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 8 17:25:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0813412
7
8 dev-libs/spdlog: remove unused patch
9
10 dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt | 116 ---------------------
11 1 file changed, 116 deletions(-)
12
13 diff --git a/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt b/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt
14 deleted file mode 100644
15 index ad8062edda9..00000000000
16 --- a/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt
17 +++ /dev/null
18 @@ -1,116 +0,0 @@
19 -#
20 -# Copyright(c) 2015 Ruslan Baratov.
21 -# Distributed under the MIT License (http://opensource.org/licenses/MIT)
22 -#
23 -
24 -cmake_minimum_required(VERSION 3.1)
25 -project(spdlog VERSION 0.14.0)
26 -include(CTest)
27 -include(CMakeDependentOption)
28 -include(GNUInstallDirs)
29 -
30 -#---------------------------------------------------------------------------------------
31 -# compiler config
32 -#---------------------------------------------------------------------------------------
33 -set(CMAKE_CXX_STANDARD 11)
34 -set(CMAKE_CXX_STANDARD_REQUIRED ON)
35 -
36 -if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
37 - set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
38 -endif()
39 -
40 -#---------------------------------------------------------------------------------------
41 -# spdlog target
42 -#---------------------------------------------------------------------------------------
43 -add_library(spdlog INTERFACE)
44 -
45 -option(SPDLOG_BUILD_EXAMPLES "Build examples" OFF)
46 -cmake_dependent_option(SPDLOG_BUILD_TESTING
47 - "Build spdlog tests" ON
48 - "BUILD_TESTING" OFF
49 -)
50 -
51 -target_include_directories(
52 - spdlog
53 - INTERFACE
54 - "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
55 - "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
56 -)
57 -
58 -set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
59 -
60 -if(SPDLOG_BUILD_EXAMPLES)
61 - add_subdirectory(example)
62 -endif()
63 -
64 -if(SPDLOG_BUILD_TESTING)
65 - add_subdirectory(tests)
66 -endif()
67 -
68 -#---------------------------------------------------------------------------------------
69 -# Install/export targets and files
70 -#---------------------------------------------------------------------------------------
71 -# set files and directories
72 -set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
73 -set(include_install_dir "${CMAKE_INSTALL_INCLUDEDIR}")
74 -set(pkgconfig_install_dir "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
75 -set(version_config "${CMAKE_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
76 -set(project_config "${PROJECT_NAME}Config.cmake")
77 -set(pkg_config "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc")
78 -set(targets_export_name "${PROJECT_NAME}Targets")
79 -set(namespace "${PROJECT_NAME}::")
80 -
81 -# generate package version file
82 -include(CMakePackageConfigHelpers)
83 -write_basic_package_version_file(
84 - "${version_config}" COMPATIBILITY SameMajorVersion
85 -)
86 -
87 -# configure pkg config file
88 -configure_file("cmake/spdlog.pc.in" "${pkg_config}" @ONLY)
89 -
90 -# install targets
91 -install(
92 - TARGETS spdlog
93 - EXPORT "${targets_export_name}"
94 - INCLUDES DESTINATION "${include_install_dir}"
95 -)
96 -
97 -# install headers
98 -install(
99 - DIRECTORY "${HEADER_BASE}/${PROJECT_NAME}"
100 - DESTINATION "${include_install_dir}"
101 -)
102 -
103 -# install project version file
104 -install(
105 - FILES "${version_config}"
106 - DESTINATION "${config_install_dir}"
107 -)
108 -
109 -# install pkg config file
110 -install(
111 - FILES "${pkg_config}"
112 - DESTINATION "${pkgconfig_install_dir}"
113 -)
114 -
115 -# install project config file
116 -install(
117 - EXPORT "${targets_export_name}"
118 - NAMESPACE "${namespace}"
119 - DESTINATION "${config_install_dir}"
120 - FILE ${project_config}
121 -)
122 -
123 -# export build directory config file
124 -export(
125 - EXPORT ${targets_export_name}
126 - NAMESPACE "${namespace}"
127 - FILE ${project_config}
128 -)
129 -
130 -# register project in CMake user registry
131 -export(PACKAGE ${PROJECT_NAME})
132 -
133 -file(GLOB_RECURSE spdlog_include_SRCS "${HEADER_BASE}/*.h")
134 -add_custom_target(spdlog_headers_for_ide SOURCES ${spdlog_include_SRCS})