mirror of
https://github.com/boostorg/assert.git
synced 2026-01-25 08:32:25 +01:00
Remove the check for the Visual Studio generator; the generator may be Ninja on Windows, and adding the headers to the project may be useful on non-Windows
This commit is contained in:
@@ -19,7 +19,7 @@ target_link_libraries(boost_assert
|
||||
|
||||
# Add headers and .natvis to project, for better IDE integration
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.18)
|
||||
|
||||
# Using target_sources with PRIVATE or PUBLIC on INTERFACE targets requires 3.19
|
||||
|
||||
@@ -28,7 +28,12 @@ if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio
|
||||
target_sources(boost_assert PRIVATE ${boost_assert_HEADERS})
|
||||
unset(boost_assert_HEADERS)
|
||||
|
||||
target_sources(boost_assert PUBLIC extra/boost_assert.natvis)
|
||||
if(MSVC)
|
||||
|
||||
# Only Visual Studio needs this, but the generator may also be Ninja
|
||||
target_sources(boost_assert PUBLIC extra/boost_assert.natvis)
|
||||
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user