i've tried several ways , read quite questions on so, still can't own boost included before 1 in /usr/include.
i'm using ubuntu 14.04 btw.
boost_root="${cmake_current_source_dir}/libraries/hdm-boost-lib" \ boost_include_dirs="${cmake_current_source_dir}/libraries/hdm-boost-lib/include" \ boost_no_boost_cmake=true \ boost_no_system_paths=true \ boost_library_dirs="${cmake_current_source_dir}/libraries/hdm-boost-lib/lib" \ cmake -d cmake_build_type=release \ -dboost_no_boost_cmake=true \ -dboost_no_system_paths=true \ -dboost_library_dirs:filepath="${cmake_current_source_dir}/libraries/hdm-boost-lib/lib" \ .
and cmakelists.txt
# set (cmake_cxx_standard 11) set(cmake_cxx_flags "-o2 -std=c++11 -wall ${cmake_cxx_flags}") set (cmake_prefix_path "/opt/hdm") set( serializer_src main.cpp serializer.cpp ) add_executable(cadmiral-serializer ${serializer_src}) set(boost_root "${cmake_current_source_dir}/../libraries/hdm-boost-lib") set(boost_include_dirs "${boost_root}/include") set(boost_library_dirs "${boost_root}/lib") #find_package(boost required regex date_time system filesystem thread graph program_options) #find_package(geos) #find_package(gdal) include_directories( "${cmake_current_source_dir}/../libraries/hdm-geo-common/hdm-geo-common/include" "${boost_include_dirs}" "${cmake_current_source_dir}/../libraries/hdm-geo-common/hdm-geo-common/include" /opt/hdm/include "${cmake_current_source_dir}/../libraries/hdm-boost-lib/include" ) #find_library(gdal_lib libgdal /opt/hdm/gdal/lib) #find_library(geos_lib libgeos /opt/hdm/geos/lib) target_link_libraries(cadmiral-serializer "${cmake_current_source_dir}/../libraries/hdm-geo-common/hdm-geo-common/libhdm_geo_common.a" /opt/hdm/geos/lib/libgeos.so /opt/hdm/gdal/lib/libgdal.so #${geos_lib} #${gdal_lib} )
how can force own headers in libraries/hdm-boost-lib/include?
Comments
Post a Comment