Don't generate util/version.hpp in source tree
This commit is contained in:
parent
cd458e7a44
commit
a00d3dfc00
@ -33,6 +33,7 @@ option(ENABLE_JSON_LOGGING "Adds additional JSON debug logging to the response"
|
|||||||
option(BUILD_TOOLS "Build OSRM tools" OFF)
|
option(BUILD_TOOLS "Build OSRM tools" OFF)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||||
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/)
|
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/)
|
||||||
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libosmium/include/)
|
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libosmium/include/)
|
||||||
@ -51,7 +52,7 @@ set(BOOST_COMPONENTS date_time filesystem iostreams program_options regex system
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/util/version.hpp.in
|
${CMAKE_CURRENT_SOURCE_DIR}/util/version.hpp.in
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/util/version.hpp
|
${CMAKE_CURRENT_BINARY_DIR}/util/version.hpp
|
||||||
)
|
)
|
||||||
file(GLOB ExtractorGlob extractor/*.cpp data_structures/hilbert_value.cpp)
|
file(GLOB ExtractorGlob extractor/*.cpp data_structures/hilbert_value.cpp)
|
||||||
file(GLOB ImporterGlob data_structures/import_edge.cpp data_structures/external_memory_node.cpp data_structures/raster_source.cpp)
|
file(GLOB ImporterGlob data_structures/import_edge.cpp data_structures/external_memory_node.cpp data_structures/raster_source.cpp)
|
||||||
@ -97,7 +98,6 @@ add_library(COORDINATE OBJECT ${CoordinateGlob})
|
|||||||
add_library(OSRM ${OSRMSources} $<TARGET_OBJECTS:ANGLE> $<TARGET_OBJECTS:COORDINATE> $<TARGET_OBJECTS:FINGERPRINT> $<TARGET_OBJECTS:LOGGER> $<TARGET_OBJECTS:RESTRICTION> $<TARGET_OBJECTS:PHANTOMNODE> $<TARGET_OBJECTS:EXCEPTION> $<TARGET_OBJECTS:MERCATOR> $<TARGET_OBJECTS:IMPORT>)
|
add_library(OSRM ${OSRMSources} $<TARGET_OBJECTS:ANGLE> $<TARGET_OBJECTS:COORDINATE> $<TARGET_OBJECTS:FINGERPRINT> $<TARGET_OBJECTS:LOGGER> $<TARGET_OBJECTS:RESTRICTION> $<TARGET_OBJECTS:PHANTOMNODE> $<TARGET_OBJECTS:EXCEPTION> $<TARGET_OBJECTS:MERCATOR> $<TARGET_OBJECTS:IMPORT>)
|
||||||
|
|
||||||
add_library(FINGERPRINT OBJECT util/fingerprint.cpp)
|
add_library(FINGERPRINT OBJECT util/fingerprint.cpp)
|
||||||
target_include_directories(FINGERPRINT PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
|
||||||
add_dependencies(FINGERPRINT FingerPrintConfigure)
|
add_dependencies(FINGERPRINT FingerPrintConfigure)
|
||||||
add_dependencies(OSRM FingerPrintConfigure)
|
add_dependencies(OSRM FingerPrintConfigure)
|
||||||
set_target_properties(FINGERPRINT PROPERTIES LINKER_LANGUAGE CXX)
|
set_target_properties(FINGERPRINT PROPERTIES LINKER_LANGUAGE CXX)
|
||||||
|
@ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "contractor_options.hpp"
|
#include "contractor_options.hpp"
|
||||||
|
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
@ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "extractor_options.hpp"
|
#include "extractor_options.hpp"
|
||||||
|
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/ini_file.hpp"
|
#include "../util/ini_file.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/osrm_exception.hpp"
|
#include "../util/osrm_exception.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
#include "../util/timing_util.hpp"
|
#include "../util/timing_util.hpp"
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../library/osrm.hpp"
|
#include "../library/osrm.hpp"
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/json_renderer.hpp"
|
#include "../util/json_renderer.hpp"
|
||||||
#include "../util/routed_options.hpp"
|
#include "../util/routed_options.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
|
@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "../data_structures/shared_memory_factory.hpp"
|
#include "../data_structures/shared_memory_factory.hpp"
|
||||||
#include "../server/data_structures/shared_datatype.hpp"
|
#include "../server/data_structures/shared_datatype.hpp"
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
|
|
||||||
void delete_region(const SharedDataType region)
|
void delete_region(const SharedDataType region)
|
||||||
|
@ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../util/version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
#include "../server/data_structures/shared_barriers.hpp"
|
#include "../server/data_structures/shared_barriers.hpp"
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef DATASTORE_OPTIONS_HPP
|
#ifndef DATASTORE_OPTIONS_HPP
|
||||||
#define DATASTORE_OPTIONS_HPP
|
#define DATASTORE_OPTIONS_HPP
|
||||||
|
|
||||||
#include "version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "ini_file.hpp"
|
#include "ini_file.hpp"
|
||||||
#include "osrm_exception.hpp"
|
#include "osrm_exception.hpp"
|
||||||
#include "simple_logger.hpp"
|
#include "simple_logger.hpp"
|
||||||
|
@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef ROUTED_OPTIONS_HPP
|
#ifndef ROUTED_OPTIONS_HPP
|
||||||
#define ROUTED_OPTIONS_HPP
|
#define ROUTED_OPTIONS_HPP
|
||||||
|
|
||||||
#include "version.hpp"
|
#include "util/version.hpp"
|
||||||
#include "ini_file.hpp"
|
#include "ini_file.hpp"
|
||||||
#include "osrm_exception.hpp"
|
#include "osrm_exception.hpp"
|
||||||
#include "simple_logger.hpp"
|
#include "simple_logger.hpp"
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Copyright (c) 2015, Project OSRM contributors
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
of conditions and the following disclaimer.
|
|
||||||
Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef VERSION_HPP
|
|
||||||
#define VERSION_HPP
|
|
||||||
|
|
||||||
#define OSRM_VERSION_MAJOR "4"
|
|
||||||
#define OSRM_VERSION_MINOR "8"
|
|
||||||
#define OSRM_VERSION_PATCH "0"
|
|
||||||
|
|
||||||
#define OSRM_VERSION "v" OSRM_VERSION_MAJOR "." OSRM_VERSION_MINOR "." OSRM_VERSION_PATCH
|
|
||||||
|
|
||||||
#endif // VERSION_HPP
|
|
Loading…
Reference in New Issue
Block a user