You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2021/08/31 02:05:53 UTC

[logging-log4cxx] branch github-actions-clang updated: don't do resource if compiling with clang

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

rmiddleton pushed a commit to branch github-actions-clang
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/github-actions-clang by this push:
     new 0ac3ba4  don't do resource if compiling with clang
0ac3ba4 is described below

commit 0ac3ba4810836af2bf11ca4b751727e825c87b8f
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Mon Aug 30 22:05:46 2021 -0400

    don't do resource if compiling with clang
---
 src/main/resources/CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/CMakeLists.txt b/src/main/resources/CMakeLists.txt
index b60f192..56c9e7a 100644
--- a/src/main/resources/CMakeLists.txt
+++ b/src/main/resources/CMakeLists.txt
@@ -1,5 +1,7 @@
-# Configure
-if(WIN32)
+# Configure the resource file
+# Note: On Windows, clang tries to compile the resource file, but it fails.
+# Ignore it for now.
+if(WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
 target_sources(log4cxx
   PRIVATE
   ../resources/log4cxx.rc