You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2020/06/25 07:27:37 UTC
[logging-log4cxx] 01/03: LOGCXX-510: CMP0079 to make build work
with linking "odbc32.lib" in Windows.
This is an automated email from the ASF dual-hosted git repository.
tschoening pushed a commit to branch logcxx_510_cmake_vs2019_compat
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit fb840c3262a7b4998e98fa751e34e91a0f1e1c1d
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Thu Jun 25 09:14:45 2020 +0200
LOGCXX-510: CMP0079 to make build work with linking "odbc32.lib" in Windows.
---
src/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3e0cb17..ff61753 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,6 +4,7 @@ target_include_directories(log4cxx INTERFACE $<INSTALL_INTERFACE:include> PRIVAT
target_link_libraries(log4cxx PRIVATE ${APR_UTIL_LIBRARIES} ${XMLLIB_LIBRARIES} ${APR_LIBRARIES} ${APR_SYSTEM_LIBS})
if(WIN32)
# The ODBC appender is always enabled in the Windows configuration
+cmake_policy(SET CMP0079 NEW)
target_link_libraries(log4cxx PRIVATE odbc32.lib)
option(LOG4CXX_INSTALL_PDB "Install .pdb files (if generated)" ON)
endif()