Browse Source

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).
pull/172/head
datalogics-robl 2 years ago
parent
commit
4751f711de
  1. 2
      CMakeLists.txt

2
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)

Loading…
Cancel
Save