From 4751f711de216c6729dac157ea9ff4ac7dec99e4 Mon Sep 17 00:00:00 2001 From: datalogics-robl Date: Fri, 3 May 2024 15:14:35 -0500 Subject: [PATCH] Use correct casing for BOOST_VERSION Boost_VERSION_MACRO sometimes gives the wrong result, because the casing "Boost_VERSION" doesn't match "BOOST_VERSION" (as it's used everywhere else). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ef455e..7e73f7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,7 +163,7 @@ link_directories(${Boost_LIBRARY_DIRS}) include_directories(SYSTEM ${Boost_INCLUDE_DIR}) if(NOT Boost_VERSION_MACRO) # CMP0093 changed Boost_VERSION to x.y.z format and provide the old format in Boost_VERSION_MACRO - set(Boost_VERSION_MACRO ${Boost_VERSION}) + set(Boost_VERSION_MACRO ${BOOST_VERSION}) endif() has_static_libs(Boost Boost_LIBRARIES)