消除 Imported targets not available for Boost version 106300警告提示
2016-12-31 00:00
260 查看
摘要: CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:740 (message):
Imported targets not available for Boost version 106300
使用新版本的boost库,运行cmake编译程序时,遇到警告信息: Imported targets not available for Boost version 106300,
这是由于cmake版本旧,boost版本新,cmake带来的FindBoost.cmake,
编辑/usr/share/cmake-3.5/Modules/FindBoost.cmake文件,搜索Imported targets not available for Boost version ${Boost_VERSION}
在这个if语句最后加入,内容可以复制对上个版本的内容或者把版本好加大:
elseif(NOT Boost_VERSION VERSION_LESS 106300 AND Boost_VERSION VERSION_LESS 106400)
set(_Boost_CHRONO_DEPENDENCIES system)
set(_Boost_CONTEXT_DEPENDENCIES thread chrono system date_time)
set(_Boost_COROUTINE_DEPENDENCIES context system)
set(_Boost_FIBER_DEPENDENCIES context thread chrono system date_time)
set(_Boost_FILESYSTEM_DEPENDENCIES system)
set(_Boost_IOSTREAMS_DEPENDENCIES regex)
set(_Boost_LOG_DEPENDENCIES date_time log_setup system filesystem thread regex chrono atomic)
set(_Boost_MATH_DEPENDENCIES math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l atomic)
set(_Boost_MPI_DEPENDENCIES serialization)
set(_Boost_MPI_PYTHON_DEPENDENCIES python mpi serialization)
set(_Boost_RANDOM_DEPENDENCIES system)
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic)
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic)
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization)
else()
message(WARNING "Imported targets not available for Boost version ${Boost_VERSION}")
set(_Boost_IMPORTED_TARGETS FALSE)
endif()
Imported targets not available for Boost version 106300
使用新版本的boost库,运行cmake编译程序时,遇到警告信息: Imported targets not available for Boost version 106300,
这是由于cmake版本旧,boost版本新,cmake带来的FindBoost.cmake,
编辑/usr/share/cmake-3.5/Modules/FindBoost.cmake文件,搜索Imported targets not available for Boost version ${Boost_VERSION}
在这个if语句最后加入,内容可以复制对上个版本的内容或者把版本好加大:
elseif(NOT Boost_VERSION VERSION_LESS 106300 AND Boost_VERSION VERSION_LESS 106400)
set(_Boost_CHRONO_DEPENDENCIES system)
set(_Boost_CONTEXT_DEPENDENCIES thread chrono system date_time)
set(_Boost_COROUTINE_DEPENDENCIES context system)
set(_Boost_FIBER_DEPENDENCIES context thread chrono system date_time)
set(_Boost_FILESYSTEM_DEPENDENCIES system)
set(_Boost_IOSTREAMS_DEPENDENCIES regex)
set(_Boost_LOG_DEPENDENCIES date_time log_setup system filesystem thread regex chrono atomic)
set(_Boost_MATH_DEPENDENCIES math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l atomic)
set(_Boost_MPI_DEPENDENCIES serialization)
set(_Boost_MPI_PYTHON_DEPENDENCIES python mpi serialization)
set(_Boost_RANDOM_DEPENDENCIES system)
set(_Boost_THREAD_DEPENDENCIES chrono system date_time atomic)
set(_Boost_WAVE_DEPENDENCIES filesystem system serialization thread chrono date_time atomic)
set(_Boost_WSERIALIZATION_DEPENDENCIES serialization)
else()
message(WARNING "Imported targets not available for Boost version ${Boost_VERSION}")
set(_Boost_IMPORTED_TARGETS FALSE)
endif()
相关文章推荐
- CMake错误: Imported targets not available for * version, Could NOT find *, ... 解决
- 升级Xcode7之后,消除 Directory not found for option ‘xxxx'警告
- brew install失败:提示We do not provide support for this pre-release version.
- 消除 Xcode7 中 directory not found for option 'xxxx' 警告
- android studio运行时提示All packages are not available for download! the following package are not availa
- 消除directory not found for option '-F'/'-L' 警告
- Error:Could not download guava.jar (com.google.guava:guava:19.0): No cached version available for of
- R 报错:package ‘***’ is not available (for R version ****) 的解决方案
- Monodevelop打开项目后引用提示“Assembly not available for Mono……” 解决办法
- ios 警告消除 directory not found for option
- Swift: 消除警告-Scene is unreachable due to lack of entry points and does not have an identifier for
- R语言 关于package'***' is not available(for R version 3.4.1)
- 禁止requests请求https的提示InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more
- R语言中package ‘xxxx’ is not available (for R version 3.2.5)解决
- install.packages("simpleaffy") 报错package ‘simpleaffy’ is not available (for R version 3.3.1)
- eclipse run提示错误解决办法: Native library for Attach API not available in this JRE
- 消除警告"property access result unused - getters should not be used for side effects"
- Spring Boot中使用Feign调用时Hystrix提示异常:"could not be queued for execution and no fallback available."以及"Rejected command because thread-pool queueSize is at rejection threshold"
- [SharePoint知识库] 导出List为Template时,提示 The specified gallery is not available for this Web site collection.
- [笔记].怎样消除pointer targets in passing argument n of 'func_xxx' differ in signedness警告