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.
|
set(file "${CMAKE_CURRENT_BINARY_DIR}/a-test-file")
|
|
|
|
file(WRITE "${file}" "test")
|
|
|
|
file(SIZE "${file}" CALCULATED_SIZE)
|
|
|
|
if (NOT CALCULATED_SIZE EQUAL 4)
|
|
message(FATAL_ERROR "Unexpected file size")
|
|
endif()
|