diff --git a/osmpbf/CMakeLists.txt b/osmpbf/CMakeLists.txt index 08f2498..46cd483 100644 --- a/osmpbf/CMakeLists.txt +++ b/osmpbf/CMakeLists.txt @@ -7,6 +7,7 @@ target_include_directories(osmpbf SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS}) install(TARGETS osmpbf ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) protobuf_generate(LANGUAGE cpp + APPEND_PATH TARGET osmpbf PROTOS fileformat.proto osmformat.proto) @@ -21,6 +22,7 @@ set_target_properties(osmpbf_shared PROPERTIES OUTPUT_NAME osmpbf install(TARGETS osmpbf_shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) protobuf_generate(LANGUAGE cpp + APPEND_PATH TARGET osmpbf_shared PROTOS fileformat.proto osmformat.proto) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 7d62dc2..59e04e0 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -8,7 +8,7 @@ add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64) add_executable(osmpbf-outline osmpbf-outline.cpp) -target_include_directories(osmpbf-outline SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR} ${Protobuf_INCLUDE_DIRS}) +target_include_directories(osmpbf-outline SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR}) target_link_libraries(osmpbf-outline PRIVATE osmpbf ZLIB::ZLIB) set_property(TARGET osmpbf-outline PROPERTY CXX_STANDARD 11)