Installation of Numcpp ignores -DNUMCPP_NO_USE_BOOST=ON
kapton-marvel opened this issue · 2 comments
Describe the bug
When trying to use cmake to install NumCPP with the following commands
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/username/libraries/NumCpp -DNUMCPP_NO_USE_BOOST=ON
make install
The library is built and installed in the library directory, then testing the numcpp eigen example the follow error is produced.
/Users/username/ibraries/NumCpp/include/NumCpp/DateTime/DateTime.hpp:41:10 'boost/date_time/posix_time/posix_time.hpp' file not found
Adding the library boost in the same library directory allows for successful compilation without rebuilding.
It seems the flag is ignored.
To Reproduce
Steps to reproduce the behaviour :
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/username/libraries/NumCpp -DNUMCPP_NO_USE_BOOST=ON
make install
Add Numcpp installation folder to header search path with recursive search within Xcode.
Expected behavior
The example program to build without boost.
Additional context
Numcpp v2.12.1
Xcode v15
boost v1.84
macOS 14.4.1
M2 processor
NUMCPP_NO_USE_BOOST
is a compiler definition that you would need to pass to your build tool for your project. It has nothing to do with installation of the NumCpp
library.
Thank you, I've added -DNUMCPP_NO_USE_BOOST=ON
to the Other C++ Flags within Xcode, and it compiles successfully.
And much faster than with boost!