Author: rinrab
Date: Sun Oct  6 11:03:20 2024
New Revision: 1921148

URL: http://svn.apache.org/viewvc?rev=1921148&view=rev
Log:
cmake: Make the tests correctly loading DSO modules from the build-dir on
Linux, by setting the LD_LIBRARY_PATH environment variable to it.

* build/generator/templates/targets.cmake.ezt
  (tests): Use set_tests_properties() command to modify the environment
   variables.

Modified:
    subversion/trunk/build/generator/templates/targets.cmake.ezt

Modified: subversion/trunk/build/generator/templates/targets.cmake.ezt
URL: 
http://svn.apache.org/viewvc/subversion/trunk/build/generator/templates/targets.cmake.ezt?rev=1921148&r1=1921147&r2=1921148&view=diff
==============================================================================
--- subversion/trunk/build/generator/templates/targets.cmake.ezt (original)
+++ subversion/trunk/build/generator/templates/targets.cmake.ezt Sun Oct  6 
11:03:20 2024
@@ -68,6 +68,7 @@ if ([targets.enable_condition])[is targe
     COMMAND [targets.name] --srcdir ${CMAKE_SOURCE_DIR}/[targets.srcdir]
     WORKING_DIRECTORY $<TARGET_FILE_DIR:[targets.name]>
   )
+  set_tests_properties([targets.namespace].[targets.name] PROPERTIES 
ENVIRONMENT LD_LIBRARY_PATH=$<TARGET_FILE_DIR:[targets.name]>)
   [end]target_link_libraries([targets.name] PRIVATE[for targets.libs]
     [targets.libs][end]
   )[if-any targets.msvc_libs]


Reply via email to