polkadot_api_cpp icon indicating copy to clipboard operation
polkadot_api_cpp copied to clipboard

boost_find_component Macro invoked with incorrect arguments for macro

Open lucgerrits opened this issue 5 years ago • 0 comments

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

lucgerrits avatar Feb 05 '21 11:02 lucgerrits