diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2016-11-14 15:43:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 15:43:53 -0500 |
commit | bab5cee26bce4f2393fb51030f7be35c171ed44c (patch) | |
tree | 7d949268a70066602cd3ed6abca2ac97598beba5 /freetds/0002-CMake-install-headers.patch | |
parent | d47f07051f6d05af894b6799e1cee6c03b3351e9 (diff) | |
download | astroconda-dev-bab5cee26bce4f2393fb51030f7be35c171ed44c.tar.gz |
Add freetds and unixODBC (#10)
* Initial commit of freetds
* Ensure linkage is 64-bit
* Add unixODBC
* Add unixodbc dependency; Remove Continuum kerberos
Diffstat (limited to 'freetds/0002-CMake-install-headers.patch')
-rw-r--r-- | freetds/0002-CMake-install-headers.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/freetds/0002-CMake-install-headers.patch b/freetds/0002-CMake-install-headers.patch new file mode 100644 index 0000000..23c7d8d --- /dev/null +++ b/freetds/0002-CMake-install-headers.patch @@ -0,0 +1,36 @@ +diff -urN freetds-1.00.9.orig/src/ctlib/CMakeLists.txt freetds-1.00.9/src/ctlib/CMakeLists.txt +--- freetds-1.00.9.orig/src/ctlib/CMakeLists.txt 2016-09-03 12:53:36.127162000 +0100 ++++ freetds-1.00.9/src/ctlib/CMakeLists.txt 2016-09-03 13:12:32.584615800 +0100 +@@ -22,6 +22,8 @@ + SET_TARGET_PROPERTIES(ct PROPERTIES CLEAN_DIRECT_OUTPUT 1) + SET_TARGET_PROPERTIES(ct-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + ++set_target_properties(ct PROPERTIES PUBLIC_HEADER "../../include/bkpublic.h;../../include/cspublic.h;../../include/cstypes.h;../../include/ctpublic.h;${CMAKE_BINARY_DIR}/include/tds_sysdep_public.h") ++ + target_link_libraries(ct-static tds replacements ${lib_NETWORK} ${lib_BASE}) + + if(NOT WIN32) +@@ -31,4 +33,4 @@ + if(MINGW OR CYGWIN) + set_target_properties(ct PROPERTIES LINK_FLAGS "--static") + endif(MINGW OR CYGWIN) +-install(TARGETS ct-static ct ARCHIVE DESTINATION lib RUNTIME DESTINATION bin LIBRARY DESTINATION lib) ++install(TARGETS ct-static ct ARCHIVE DESTINATION lib RUNTIME DESTINATION bin LIBRARY DESTINATION lib PUBLIC_HEADER DESTINATION include) +diff -urN freetds-1.00.9.orig/src/dblib/CMakeLists.txt freetds-1.00.9/src/dblib/CMakeLists.txt +--- freetds-1.00.9.orig/src/dblib/CMakeLists.txt 2016-09-03 12:53:36.194162100 +0100 ++++ freetds-1.00.9/src/dblib/CMakeLists.txt 2016-09-03 13:11:42.228405700 +0100 +@@ -23,6 +23,8 @@ + SET_TARGET_PROPERTIES(sybdb PROPERTIES CLEAN_DIRECT_OUTPUT 1) + SET_TARGET_PROPERTIES(sybdb-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + ++set_target_properties(sybdb PROPERTIES PUBLIC_HEADER "../../include/sqldb.h;../../include/sqlfront.h;../../include/sybdb.h;../../include/sybfront.h;../../include/syberror.h;../../include/odbcss.h") ++ + target_link_libraries(sybdb-static tds replacements ${lib_NETWORK} ${lib_BASE}) + + if(NOT WIN32) +@@ -32,4 +34,4 @@ + if(MINGW OR CYGWIN) + set_target_properties(sybdb PROPERTIES LINK_FLAGS "--static") + endif(MINGW OR CYGWIN) +-install(TARGETS sybdb-static sybdb ARCHIVE DESTINATION lib RUNTIME DESTINATION bin LIBRARY DESTINATION lib) ++install(TARGETS sybdb-static sybdb ARCHIVE DESTINATION lib RUNTIME DESTINATION bin LIBRARY DESTINATION lib PUBLIC_HEADER DESTINATION include) |