From dff14cbe2673f82ff24ce928eb3e6ff4e6dbd9b7 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 29 Aug 2019 14:38:27 -0500 Subject: Fix EXISTS test syntax --- config/cmake_ext_mod/runTest.cmake | 2 +- config/toolchain/build32.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake index 100de3e..e601653 100644 --- a/config/cmake_ext_mod/runTest.cmake +++ b/config/cmake_ext_mod/runTest.cmake @@ -204,7 +204,7 @@ endif () # compare output files to references unless this must be skipped if (NOT TEST_SKIP_COMPARE) - if (EXISTS ${TEST_FOLDER}/${TEST_REFERENCE}) + if (EXISTS "${TEST_FOLDER}/${TEST_REFERENCE}") if (WIN32 OR MINGW) configure_file(${TEST_FOLDER}/${TEST_REFERENCE} ${TEST_FOLDER}/${TEST_REFERENCE}.tmp NEWLINE_STYLE CRLF) file(RENAME ${TEST_FOLDER}/${TEST_REFERENCE}.tmp ${TEST_FOLDER}/${TEST_REFERENCE}) diff --git a/config/toolchain/build32.cmake b/config/toolchain/build32.cmake index 3d9197d..d078956 100644 --- a/config/toolchain/build32.cmake +++ b/config/toolchain/build32.cmake @@ -11,7 +11,7 @@ else () set (LIB32 /usr/lib) # Fedora - if (EXISTS /usr/lib32) + if (EXISTS "/usr/lib32") set (LIB32 /usr/lib32) # Arch, Solus endif () @@ -26,7 +26,7 @@ else () # on Fedora and Arch and similar, point pkgconfig at 32 bit .pc files. We have # to include the regular system .pc files as well (at the end), because some # are not always present in the 32 bit directory - if (EXISTS ${LIB32}/pkgconfig) + if (EXISTS "${LIB32}/pkgconfig") set (ENV{PKG_CONFIG_LIBDIR} ${LIB32}/pkgconfig:/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig) endif () # where is the target environment -- cgit v0.12