Set destination for installs explicitly
Apparently not setting this doesn't work on older versions of CMake.
This commit is contained in:
parent
7982f902f7
commit
e5de634ce2
|
|
@ -2,13 +2,13 @@ protobuf_generate_cpp(CPPS HS fileformat.proto osmformat.proto)
|
|||
|
||||
add_library(osmpbf STATIC ${CPPS})
|
||||
target_include_directories(osmpbf SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS})
|
||||
install(TARGETS osmpbf ARCHIVE)
|
||||
install(TARGETS osmpbf ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
add_library(osmpbf_shared SHARED ${CPPS})
|
||||
target_link_libraries(osmpbf_shared PRIVATE protobuf::libprotobuf)
|
||||
target_include_directories(osmpbf_shared SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS})
|
||||
set_target_properties(osmpbf_shared PROPERTIES OUTPUT_NAME osmpbf)
|
||||
install(TARGETS osmpbf_shared LIBRARY)
|
||||
install(TARGETS osmpbf_shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/include/osmpbf/osmpbf.h
|
||||
${CMAKE_BINARY_DIR}/osmpbf/osmformat.pb.h
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@ add_executable(osmpbf-outline osmpbf-outline.cpp)
|
|||
target_include_directories(osmpbf-outline SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR})
|
||||
target_link_libraries(osmpbf-outline PRIVATE osmpbf ZLIB::ZLIB protobuf::libprotobuf)
|
||||
|
||||
install(TARGETS osmpbf-outline RUNTIME)
|
||||
install(TARGETS osmpbf-outline RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES osmpbf-outline.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue