summaryrefslogtreecommitdiff
path: root/Tests/ComplexOneConfig/Library/test_preprocess.cmake
blob: 885c613305901704cdcaebcfba607ea58c626707 (plain)
1
2
3
4
5
6
7
set(TEST_FILE CMakeFiles/create_file.dir/create_file.i)
file(READ ${TEST_FILE} CONTENTS)
if("${CONTENTS}" MATCHES "Unable to close")
  message(STATUS "${TEST_FILE} created successfully!")
else("${CONTENTS}" MATCHES "Unable to close")
  message(FATAL_ERROR "${TEST_FILE} creation failed!")
endif("${CONTENTS}" MATCHES "Unable to close")