SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH ".")
SET(CMAKE_LIBRARY_PATH ".")
CMakeLists.txt中设置编译后的可执行程序优先调用本地库(和可执行程序在同一个文件夹下的库)
最新推荐文章于 2024-08-31 11:27:31 发布