Policy CMP0111 is not set: An imported target missing its location property
fails during generation. Run "cmake --help-policy CMP0111" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
IMPORTED_LOCATION not set for imported target "Boost::thread" configuration
"RelWithDebInfo"
比如sfcgdal或者pgrouting等插件,使用cmake去编译时候调用了boost出现上面的错误
解决办法:
-DBoost_NO_BOOST_CMAKE=BOOL:ON
或者
set(Boost_NO_BOOST_CMAKE TRUE)