forked from boostorg/system
Update CMakeLists.txt
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
# Distributed under the Boost Software License, Version 1.0.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5...3.16)
|
cmake_minimum_required(VERSION 3.5...3.20)
|
||||||
|
|
||||||
project(boost_system VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
project(boost_system VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||||
|
|
||||||
@ -20,12 +20,14 @@ target_link_libraries(boost_system
|
|||||||
Boost::winapi
|
Boost::winapi
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB_RECURSE boost_system_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
|
if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_system_IDEFILES})
|
|
||||||
if (CMAKE_GENERATOR MATCHES "Visual Studio")
|
file(GLOB_RECURSE boost_system_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
|
||||||
list(APPEND boost_system_IDEFILES extra/boost_system.natvis)
|
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_system_IDEFILES})
|
||||||
|
list(APPEND boost_system_IDEFILES extra/boost_system.natvis)
|
||||||
|
target_sources(boost_system PRIVATE ${boost_system_IDEFILES})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
target_sources(boost_system PRIVATE ${boost_system_IDEFILES})
|
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user