set(tmp "${CMAKE_CURRENT_BINARY_DIR}/temp-directory") file(MAKE_DIRECTORY "${tmp}") file(LOCK "${tmp}")