|
From: <log...@li...> - 2026-02-24 12:06:30
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via ce4e8110f60885ec3a37a24813fe43d1c8851e07 (commit)
from 0e36286665f3488c35cd03ac0904953446a22c3b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit ce4e8110f60885ec3a37a24813fe43d1c8851e07
Author: Alexander Perepelkin <san...@us...>
Date: Tue Feb 24 13:06:11 2026 +0100
Add path to the shared library into PATH for the test on windows so CTest can run it
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 6919ef2..0d814a8 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -73,6 +73,10 @@ foreach(test_source IN LISTS TEST_EXECUTABLE_SOURCES)
# Add test to CTest
add_test(NAME ${test_name} COMMAND ${test_name})
set_tests_properties(${test_name} PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+ # Add path to the shared library into PATH for the test on windows so CTest can run it
+ if(WIN32)
+ set_tests_properties(${test_name} PROPERTIES ENVIRONMENT "PATH=$<TARGET_FILE_DIR:${LOG4CPP_TEST_LIB}>;$ENV{PATH}")
+ endif()
endforeach()
# List of resource files to copy
-----------------------------------------------------------------------
Summary of changes:
tests/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
hooks/post-receive
--
Log4cpp Git repository.
|