From d566fefbc3ff1f95bd0faf89b8efd1441b6f449b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 19 Oct 2025 21:10:09 +0300 Subject: [PATCH] Correct CMake version check; VERSION_GREATER 3.18 is true for 3.18.1 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f15abd40..0e822144 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ target_link_libraries(boost_interprocess Boost::winapi ) -if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio") +if(NOT CMAKE_VERSION VERSION_LESS 3.19 AND CMAKE_GENERATOR MATCHES "Visual Studio") file(GLOB_RECURSE boost_interprocess_IDEFILES CONFIGURE_DEPENDS include/*.hpp) source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_interprocess_IDEFILES} PREFIX "Header Files")