]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/static_string/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / static_string / CMakeLists.txt
index 28708738a9bae36bc825fe4b6623a6e1f6e3a0c7..ecd71b867fded8d25923be637b2d8cdedad682f0 100644 (file)
@@ -1,3 +1,30 @@
+# Generated by `boostdep --cmake static_string`
+# Copyright 2020 Peter Dimov
+# Distributed under the Boost Software License, Version 1.0.
+# https://www.boost.org/LICENSE_1_0.txt
+
+cmake_minimum_required(VERSION 3.5...3.16)
+
+project(boost_static_string VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
+
+if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+
+add_library(boost_static_string INTERFACE)
+add_library(Boost::static_string ALIAS boost_static_string)
+
+target_include_directories(boost_static_string INTERFACE include)
+
+target_link_libraries(boost_static_string
+  INTERFACE
+    Boost::assert
+    Boost::container_hash
+    Boost::static_assert
+    Boost::throw_exception
+    Boost::utility
+)
+
+else()
+
 #
 # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
 #
@@ -7,12 +34,6 @@
 # Official repository: https://github.com/boostorg/static_string
 #
 
-cmake_minimum_required (VERSION 3.5.1)
-
-if (POLICY CMP0074)
-    cmake_policy (SET CMP0074 NEW)
-endif()
-
 #-------------------------------------------------------------------------------
 
 function (DoGroupSources curdir rootdir folder)
@@ -40,8 +61,6 @@ endfunction()
 #
 #-------------------------------------------------------------------------------
 
-project (StaticString VERSION 1)
-
 set_property (GLOBAL PROPERTY USE_FOLDERS ON)
 
 if (MSVC)
@@ -150,3 +169,5 @@ file (GLOB_RECURSE PROJECT_FILES
 )
 
 add_subdirectory (test)
+
+endif()