the search of boost/optional is correct. Adding boost/optional.hpp to FindOptional will result in build error, because when the Boost variant is used the config file needs also correctly configured. This is done by the current 2 step approach.
When running CMake with the boost/optional header it should look as
Could not find OPTIONAL package Optional
No optional headers found, fall back to boost
Boost version: 1.60.0
And with the optional header it looks like
Found Optional: C:/Prog/Hugin/static_vs2015/Optional-master
Optional header found
CMAKE_ERRFILE = C:/Prog/Hugin/static_vs2015/build_enblend/CMakeFiles/CMakeError.log
(see the missing boost entry)
I commited a fix which should fix it with boost 1.60
Hi Terry,
the search of boost/optional is correct. Adding boost/optional.hpp to FindOptional will result in build error, because when the Boost variant is used the config file needs also correctly configured. This is done by the current 2 step approach.
When running CMake with the boost/optional header it should look as
Could not find OPTIONAL package Optional
No optional headers found, fall back to boost
Boost version: 1.60.0
And with the optional header it looks like Hugin/static_ vs2015/ Optional- master Hugin/static_ vs2015/ build_enblend/ CMakeFiles/ CMakeError. log
Found Optional: C:/Prog/
Optional header found
CMAKE_ERRFILE = C:/Prog/
(see the missing boost entry)
I commited a fix which should fix it with boost 1.60