You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
375 B
17 lines
375 B
set(file "${CMAKE_CURRENT_BINARY_DIR}/file-to-touch")
|
|
|
|
file(REMOVE "${file}")
|
|
file(TOUCH_NOCREATE "${file}")
|
|
if(EXISTS "${file}")
|
|
message(FATAL_ERROR "error: TOUCH_NOCREATE created a file!")
|
|
endif()
|
|
|
|
file(TOUCH "${file}")
|
|
if(NOT EXISTS "${file}")
|
|
message(FATAL_ERROR "error: TOUCH did not create a file!")
|
|
endif()
|
|
file(REMOVE "${file}")
|
|
|
|
file(TOUCH)
|
|
file(TOUCH_NOCREATE)
|