View Single Post
  #7  
Old 03-27-2021, 09:29 PM
Myserk
Fire Beetle
 
Join Date: Mar 2021
Posts: 3
Default

Quote:
Originally Posted by demonstar55 View Post
I'll set up a slackware VM and see if I run into that CMake issue you mention.
Using Boost version 1.75.0 and Cmake version 3.5.2.

This is what I see if I don't add in the aforementioned modification.

Code:
CMake Warning (dev) at /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake:240 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:245 (find_package)
  CMakeLists.txt:52 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake:240 (if):
  if given arguments:

    "ALL" "IN_LIST" "Boost_FIND_COMPONENTS"

  Unknown arguments specified
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:245 (find_package)
  CMakeLists.txt:52 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/eqemu/src2/build/CMakeFiles/CMakeOutput.log".
I don't believe it appeared on the Slackware 14.2 stock version of cmake (approximately version 3.1? from memory), but I upgraded cmake in the process of trying to get the compilation to work & then had to solve the above issue.



Additionally (and far less critically as they're only warnings, but may become an issue in the future), I saw a fair number of these during the compile. I'm pretty sure they didn't occur when I tried with an older version of Boost initially.

Code:
[ 74%] Building CXX object zone/CMakeFiles/zone.dir/lua_inventory.cpp.o
In file included from /home/eqemu/src2/libs/luabind/luabind/class.hpp:78:0,
                 from /home/eqemu/src2/libs/luabind/luabind/luabind.hpp:28,
                 from /home/eqemu/src2/zone/lua_inventory.cpp:4:
/usr/local/include/boost/bind.hpp:41:265: note: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. 
Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
Reply With Quote