Athos
Athos

Reputation: 660

boost_program_options_FOUND issue in RBuildTools when compiling in windows

I'm trying to compile C++ code for an R package and during the 'Rcmd.exe INSTALL' call this error about boost_program_options_FOUND happens. I've put 'set(Boost_USE_STATIC_LIBS ON)' in my CMakeLists.txt file with no luck. How to fix this?

make[1]: Leaving directory '/d/OneDrive/Documents/flashlighttext/src/build'
CMake Error at C:/RBuildTools/4.3/x86_64-w64-mingw32.static.posix/lib/cmake/Boost-1.81.0/BoostConfig.cmake:141 (find_package):
  Found package configuration file:

    C:/RBuildTools/4.3/x86_64-w64-mingw32.static.posix/lib/cmake/boost_program_options-1.81.0/boost_program_options-config.cmake

  but it set boost_program_options_FOUND to FALSE so package
  "boost_program_options" is considered to be NOT FOUND.  Reason given by
  package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_program_options-mt-x64.a (static, Boost_USE_STATIC_LIBS=OFF)

Upvotes: 0

Views: 82

Answers (0)

Related Questions