- 在項目文件夾下執(zhí)行cmake后生成有關(guān)cmake的各種臨時文件,可以執(zhí)行cmake -LA 來查看鏈接到的庫文件、各種變量的實際內(nèi)容。
- 關(guān)于find_package
# The code depends on the HDF5 C++ bindings, which are not searched for by CMake's HDF5 module by default. Explicitly add the C/C++ binding to the find_package command
find_package(HDF5 REQUIRED COMPONENTS C CXX)
有的包可能默認的binding沒有你要的,可以指定。比如這里HDF5默認是不會綁定C/C++的,在加COMPONENTS C CXX之前,它鏈接到了我的python下面。
會不斷更新