10 lines · plain
1# CMake script that synchronizes process execution on a given file lock.2#3# Input variables:4# LOCK_FILE_PATH - The file to be locked for the scope of the process of this cmake script.5# COMMAND - The command to be executed.6 7file(LOCK ${LOCK_FILE_PATH})8string(REPLACE "@" ";" command_args ${COMMAND})9execute_process(COMMAND ${command_args} COMMAND_ERROR_IS_FATAL ANY)10