Skip to content

Commit

Permalink
Correct Boost version variable for dependencies (#34)
Browse files Browse the repository at this point in the history
In CMake < 3.15, the Boost_VERSION variable stored the raw version
string from the Boost header. This is incorrect for dependencies, and
this is a less intrusive fix than updating the CMake requirement
  • Loading branch information
lawruble13 authored Oct 12, 2022
1 parent 9d0aeb4 commit 4d35fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if( BUILD_CLIENTS_RIDER OR BUILD_CLIENTS_SAMPLES OR BUILD_CLIENTS_TESTS )
if(BUILD_CLIENTS_TESTS OR BUILD_CLIENTS_RIDER)
find_package( Boost COMPONENTS program_options REQUIRED)
set(BOOST_DEB "libboost-program-options${Boost_VERSION_MAJOR}.${Boost_VERSION_MINOR}.${Boost_VERSION_PATCH}")
set(BOOST_RPM "boost-devel = ${Boost_VERSION}")
set(BOOST_RPM "boost-devel = ${Boost_VERSION_MAJOR}.${Boost_VERSION_MINOR}.${Boost_VERSION_PATCH}")
endif()
if(NOT CLIENTS_OS)
rocm_set_os_id(CLIENTS_OS)
Expand Down

0 comments on commit 4d35fd9

Please sign in to comment.