|
|
20b247 |
--- orc-rel-release-1.6.6/c++/src/orcConfig.cmake.orig 2021-09-02 08:12:02.402411800 -0400
|
|
|
20b247 |
+++ orc-rel-release-1.6.6/c++/src/orcConfig.cmake 2021-09-02 08:11:53.797563660 -0400
|
|
|
20b247 |
@@ -0,0 +1 @@
|
|
|
20b247 |
+include("${CMAKE_CURRENT_LIST_DIR}/orcTargets.cmake")
|
|
|
20b247 |
--- orc-rel-release-1.6.6/c++/src/CMakeLists.txt.orig 2020-12-03 15:46:53.000000000 -0500
|
|
|
20b247 |
+++ orc-rel-release-1.6.6/c++/src/CMakeLists.txt 2021-09-15 14:47:07.195633659 -0400
|
|
|
20b247 |
@@ -227,7 +227,13 @@
|
|
|
20b247 |
add_definitions(-DBUILD_LIBHDFSPP)
|
|
|
20b247 |
endif(BUILD_LIBHDFSPP)
|
|
|
20b247 |
|
|
|
20b247 |
-add_library (orc STATIC ${SOURCE_FILES})
|
|
|
20b247 |
+add_library (orc SHARED ${SOURCE_FILES})
|
|
|
20b247 |
+
|
|
|
20b247 |
+set_target_properties(orc PROPERTIES
|
|
|
20b247 |
+ POSITION_INDEPENDENT_CODE ON
|
|
|
20b247 |
+ VERSION 1.6.6
|
|
|
20b247 |
+ SOVERSION 1
|
|
|
20b247 |
+)
|
|
|
20b247 |
|
|
|
20b247 |
target_link_libraries (orc
|
|
|
20b247 |
protobuf
|
|
|
20b247 |
@@ -238,4 +244,38 @@
|
|
|
20b247 |
${LIBHDFSPP_LIBRARIES}
|
|
|
20b247 |
)
|
|
|
20b247 |
|
|
|
20b247 |
-install(TARGETS orc DESTINATION lib)
|
|
|
20b247 |
+install(TARGETS orc
|
|
|
20b247 |
+ EXPORT orcExports
|
|
|
20b247 |
+ DESTINATION ${LIB_INSTALL_DIR})
|
|
|
20b247 |
+
|
|
|
20b247 |
+include(CMakePackageConfigHelpers)
|
|
|
20b247 |
+write_basic_package_version_file(
|
|
|
20b247 |
+ "${CMAKE_CURRENT_BINARY_DIR}/orcConfigVersion.cmake"
|
|
|
20b247 |
+ VERSION ${orc_VERSION}
|
|
|
20b247 |
+ COMPATIBILITY SameMajorVersion
|
|
|
20b247 |
+ )
|
|
|
20b247 |
+
|
|
|
20b247 |
+# A Package Config file that works from the build directory
|
|
|
20b247 |
+export(EXPORT orcExports
|
|
|
20b247 |
+ FILE "${CMAKE_CURRENT_BINARY_DIR}/orcTargets.cmake"
|
|
|
20b247 |
+ NAMESPACE orc::
|
|
|
20b247 |
+ )
|
|
|
20b247 |
+configure_file(orcConfig.cmake
|
|
|
20b247 |
+ "${CMAKE_CURRENT_BINARY_DIR}/orcConfig.cmake"
|
|
|
20b247 |
+ COPYONLY
|
|
|
20b247 |
+ )
|
|
|
20b247 |
+
|
|
|
20b247 |
+# A Package Config file that works from the installation directory
|
|
|
20b247 |
+set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/orc)
|
|
|
20b247 |
+install(EXPORT orcExports
|
|
|
20b247 |
+ FILE orcTargets.cmake
|
|
|
20b247 |
+ NAMESPACE orc::
|
|
|
20b247 |
+ DESTINATION ${ConfigPackageLocation}
|
|
|
20b247 |
+ )
|
|
|
20b247 |
+install(FILES
|
|
|
20b247 |
+ orcConfig.cmake
|
|
|
20b247 |
+ "${CMAKE_CURRENT_BINARY_DIR}/orcConfigVersion.cmake"
|
|
|
20b247 |
+ DESTINATION ${ConfigPackageLocation}
|
|
|
20b247 |
+ )
|
|
|
20b247 |
+
|
|
|
20b247 |
+
|