Skip to content

Commit 24971ff

Browse files
committed
Add install
1 parent 9bc6596 commit 24971ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/odbc/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ TARGET_COMPILE_DEFINITIONS(odbccpp_static
5959

6060
TARGET_LINK_LIBRARIES(odbccpp_static
6161
PUBLIC
62-
ODBC::ODBC
62+
${ODBC_TARGET}
6363
)
6464

6565
SET_PROPERTY(TARGET odbccpp_static PROPERTY POSITION_INDEPENDENT_CODE ON)
@@ -82,4 +82,6 @@ TARGET_LINK_LIBRARIES(odbccpp
8282
SET_PROPERTY(TARGET odbccpp PROPERTY public_headers ${public_headers})
8383

8484
# Installation
85+
INSTALL(TARGETS odbccpp_static)
86+
INSTALL(TARGETS odbccpp)
8587
INSTALL(FILES ${public_headers} DESTINATION include/odbc)

0 commit comments

Comments
 (0)