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:36 UTC

[logging-log4cxx] branch logcxx_510_cmake_vs2019_compat created (now 55cafe3)

This is an automated email from the ASF dual-hosted git repository.

tschoening pushed a change to branch logcxx_510_cmake_vs2019_compat
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git.


      at 55cafe3  LOGCXX-510: Quotes for version numbers in "set_target_properties".

This branch includes the following new commits:

     new fb840c3  LOGCXX-510: CMP0079 to make build work with linking "odbc32.lib" in Windows.
     new b314089  LOGCXX-510: Ignore more directories maintained by Visual Studio or Embarcadero C++-Builder.
     new 55cafe3  LOGCXX-510: Quotes for version numbers in "set_target_properties".

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[logging-log4cxx] 01/03: LOGCXX-510: CMP0079 to make build work with linking "odbc32.lib" in Windows.

Posted by ts...@apache.org.
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()


[logging-log4cxx] 02/03: LOGCXX-510: Ignore more directories maintained by Visual Studio or Embarcadero C++-Builder.

Posted by ts...@apache.org.
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 b3140899b5ea3fd5a0304908cee0a61749ded1d1
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Thu Jun 25 09:18:45 2020 +0200

    LOGCXX-510: Ignore more directories maintained by Visual Studio or Embarcadero C++-Builder.
---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitignore b/.gitignore
index 6b1565d..dbaf83a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,11 +19,15 @@ pom.xml.releaseBackup
 release.properties
 
 autom4te.cache/
+src/.vs
+src/**/__history
 src/main/cpp/.libs/
 src/main/cpp/liblog4cxx.la
 src/main/include/log4cxx/log4cxx.h
 src/main/include/log4cxx/private/log4cxx_private.h
+src/out
 src/site/doxy/Doxyfile
 src/site/doxy/manual/
+src/test/resources/org/
 src/test/resources/output/
 target/


[logging-log4cxx] 03/03: LOGCXX-510: Quotes for version numbers in "set_target_properties".

Posted by ts...@apache.org.
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 55cafe3e33cbfbbc46d2294b75e9f8405b56769d
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Thu Jun 25 09:24:09 2020 +0200

    LOGCXX-510: Quotes for version numbers in "set_target_properties".
---
 src/main/cpp/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt
index 8f7d609..1d05b68 100644
--- a/src/main/cpp/CMakeLists.txt
+++ b/src/main/cpp/CMakeLists.txt
@@ -165,6 +165,6 @@ target_sources(log4cxx
   zipcompressaction.cpp
 )
 set_target_properties(log4cxx PROPERTIES
-  VERSION ${log4cxx_VERSION_MAJOR}.${log4cxx_VERSION_MINOR}.${log4cxx_VERSION_PATCH}
-  SOVERSION ${log4cxx_VERSION_MAJOR}
+  VERSION "${log4cxx_VERSION_MAJOR}.${log4cxx_VERSION_MINOR}.${log4cxx_VERSION_PATCH}"
+  SOVERSION "${log4cxx_VERSION_MAJOR}"
 )