From 916ce9c66576f4de24dfe774fe9ab094187c1462 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 24 Oct 2018 08:44:19 +0200 Subject: cmake: Don't use string PREPEND This is only supported in cmake >= 3.10. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3578f76..b43d03c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -83,8 +83,8 @@ function(ADD_CMOCKA_TEST_ENVIRONMENT _TEST_NAME) if (OSX) set(TORTURE_ENVIRONMENT "DYLD_FORCE_FLAT_NAMESPACE=1;DYLD_INSERT_LIBRARIES=${SOCKET_WRAPPER_LOCATION}") else () - string(REPLACE ";" ":" TORTURE_ENVIRONMENT "${PRELOAD_LIBRARIES}") - string(PREPEND TORTURE_ENVIRONMENT "LD_PRELOAD=") + string(REPLACE ";" ":" _TMP_ENV "${PRELOAD_LIBRARIES}") + set(TORTURE_ENVIRONMENT "LD_PRELOAD=${_TMP_ENV}") endif() set_property(TEST -- cgit