polkadot_api_cpp
polkadot_api_cpp copied to clipboard
boost_find_component Macro invoked with incorrect arguments for macro
Had this error:
Building project PolkadotCppAPI
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
boost_find_component Macro invoked with incorrect arguments for macro
named: boost_find_component
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:66 (find_package)
OS: Ubuntu 20.04 cmake version: 3.16.3 Solved by changing line CMakeLists.txt#L66 :
else ()
- find_package (Boost 1.39.0 COMPONENTS "${WEBSOCKETPP_BOOST_LIBS}")
+ find_package (Boost 1.39.0 COMPONENTS ${WEBSOCKETPP_BOOST_LIBS})
endif()