"log4cxx.rc" can only be found using a relative path.
diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt
index 213ece5..ffe2429 100644
--- a/src/main/cpp/CMakeLists.txt
+++ b/src/main/cpp/CMakeLists.txt
@@ -3,7 +3,7 @@
option(LOG4CXX_BLOCKING_ASYNC_APPENDER "Async appender behaviour" ON)
# Build the log4cxx library
-add_library(log4cxx action.cpp)
+add_library(log4cxx)
if(BUILD_SHARED_LIBS)
target_compile_definitions(log4cxx PRIVATE LOG4CXX)
else()
@@ -12,6 +12,7 @@
add_dependencies(log4cxx configure_log4cxx)
target_sources(log4cxx
PRIVATE
+ action.cpp
andfilter.cpp
appenderattachableimpl.cpp
appenderskeleton.cpp
diff --git a/src/main/resources/CMakeLists.txt b/src/main/resources/CMakeLists.txt
index 3827357..b60f192 100644
--- a/src/main/resources/CMakeLists.txt
+++ b/src/main/resources/CMakeLists.txt
@@ -2,6 +2,6 @@
if(WIN32)
target_sources(log4cxx
PRIVATE
- log4cxx.rc
+ ../resources/log4cxx.rc
)
-endif()
\ No newline at end of file
+endif()