Skip to content

Commit 63267da

Browse files
authored
Merge pull request #52 from florsap/remove-destination
Let cmake handle install destinations
2 parents 9148456 + 24971ff commit 63267da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/odbc/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
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,6 +82,6 @@ TARGET_LINK_LIBRARIES(odbccpp
8282
SET_PROPERTY(TARGET odbccpp PROPERTY public_headers ${public_headers})
8383

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

0 commit comments

Comments
 (0)