Tutorial Step 5 instructions don't work as written
The instructions in the first part of Step 5 ("Adding System Introspection") don't seem to work as written.
- There doesn't seem to be any place where the first big section of additions to CMakeLists.txt can be inserted. Establishing the HAVE_LOG and HAVE_EXP should occur before the
configure_file
forTutorialConfig.h
, I think. But addingtarget_link_libraries
for MathFunctions can't occur before theadd_subdirectory
. In my case, I solved this by splitting it up: putting the checking for the symbols beforeTutorialConfig.h
, and moving thetarget_link_libraries
to be after theadd_subdirectory()
. - I had to set policy CMP0079 to NEW.
Perhaps the instructions should be modified to incorporate these requirements?