在.travis.yml我有:
/// <reference path="../<path-to>EventSource.d.ts"/>
在CmakeLists.txt
中dist: precise
addons:
apt:
sources:
# For gcc >= 4.8
- ubuntu-toolchain-r-test
# For cmake >= 2.8.8 (for CMakePackageConfigHelpers)
- kubuntu-backports
- boost-latest
packages:
- g++-4.8
- cmake
- libboost-thread-dev
- libboost-graph-dev
- libcgal-dev
- postgresql-server-dev-all
- postgresql-common
当我在电脑上运行cmake时,我得到:
find_package(Boost)
if(Boost_INCLUDE_DIRS)
message(STATUS "Boost headers were found here: ${Boost_INCLUDE_DIRS}")
find_file(MYVAR geometry.hpp)
message(STATUS "geometry.hpp found here: ${MYVAR}")
endif(Boost_INCLUDE_DIRS)
但是当在github的travis中工作时,找不到geometry.hpp:
-- Boost version: 1.54.0
-- Boost headers were found here: /usr/include
-- geometry.hpp found here: /usr/include/boost/geometry.hpp
我在插件部分中缺少的是它没有找到只有标头的库几何体?
答案 0 :(得分:1)
Boost.Geometry在版本1.47(2011年IIRC)中被添加到Boost中
因此,使用1.46.1,无法找到。