aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorRatchanan Srirattanamet <ratchanan@ubports.com>2022-03-07 18:35:56 +0000
committerRatchanan Srirattanamet <ratchanan@ubports.com>2022-03-07 18:35:56 +0000
commit036b96b43f42bb7174e87973a5fb6348a512abca (patch)
treef9a4ca4b68eb8c30479c0c2caf844a0c3dcb61a4 /data/CMakeLists.txt
parentcefd302d0316728275b1e0107254010ee53f7297 (diff)
downloadayatana-indicator-display-036b96b43f42bb7174e87973a5fb6348a512abca.tar.gz
ayatana-indicator-display-036b96b43f42bb7174e87973a5fb6348a512abca.tar.bz2
ayatana-indicator-display-036b96b43f42bb7174e87973a5fb6348a512abca.zip
tests/unit: fix cmake custom command race condition
CMake's documentation says [1]: > Do not list the output in more than one independent target that may > build in parallel or the two instances of the rule may conflict > (instead use the add_custom_target() command to drive the command and > make the other targets depend on that one). Because gschemas.compiled will be referenced multiple times independently, a level of redirection is needed to prevent CMake from generating the rule for the file multiple times. This is encountered in ayatana-indicator-power as well, and fixed in a similar way [2]. [1] https://cmake.org/cmake/help/latest/command/add_custom_command.html#generating-files [2] https://github.com/AyatanaIndicators/ayatana-indicator-power/commit/9a90f932e51db486b166dd38f00e4186e40a1aee
Diffstat (limited to 'data/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions