Hello. I’m a bit stuck on step 5 of the CMake tutorial. Specifically, when I build the project I get:
Looking for log
Looking for log - not found
Looking for exp
Looking for exp - not found
No matter what I have tried, I can’t get CMake to find the log and exp. I tried replacing check_symbol_exists(log “math.h” HAVE_LOG) with check_cxx_symbol_exists(std::log “cmath” HAVE_LOG), but nothing changed. I also tried building step 6, but I have the same issue there. I also tested the example on the CHECK_CXX_SYMBOL_EXISTS documentation page, and those didn’t find the target symbol either. I could use some help.
I’m using the latest version of CMake (3.17.0-rc1), and I am using Visual Studio 2019 on Windows 10 to build the tutorial.