aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-27 21:45:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-28 14:50:05 +0200
commit754308033dc778ce12444137c622e7a4c2abf2a2 (patch)
tree59e2428f219be8191744bb35bd57b39a6a5c3cd5
parent0534fb8c96ec4ed537c66066723ae4bbd369eeef (diff)
downloadayatana-indicator-session-754308033dc778ce12444137c622e7a4c2abf2a2.tar.gz
ayatana-indicator-session-754308033dc778ce12444137c622e7a4c2abf2a2.tar.bz2
ayatana-indicator-session-754308033dc778ce12444137c622e7a4c2abf2a2.zip
tests/CMakeLists.txt: Only copy test .gschema.xml files, if source and target folder differ.
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 7c06881..2b4bdcc 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -18,7 +18,7 @@ add_custom_command (OUTPUT gschemas.compiled
${CMAKE_SOURCE_DIR}/tests/org.gnome.desktop.lockdown.gschema.xml
${CMAKE_SOURCE_DIR}/tests/org.gnome.settings-daemon.plugins.media-keys.gschema.xml
COMMAND cp -f ${CMAKE_BINARY_DIR}/data/*gschema.xml ${SCHEMA_DIR}
- COMMAND cp -f ${CMAKE_SOURCE_DIR}/tests/*gschema.xml ${SCHEMA_DIR}
+ COMMAND if [ \"x${CMAKE_SOURCE_DIR}/tests\" != \"x${SCHEMA_DIR}\" ]; then cp -f \"${CMAKE_SOURCE_DIR}/tests/\"*gschema.xml \"${SCHEMA_DIR}\"\; fi
COMMAND ${COMPILE_SCHEMA_EXECUTABLE} ${SCHEMA_DIR})
# DBus Activation