https://github.com/Kitware/CMake
Raw File
Tip revision: 4a6fe0290880bd56dd5141f06c9fa2b9e310162e authored by Brad King on 13 August 2015, 13:17:06 UTC
CMake 3.3.1
Tip revision: 4a6fe02
test_preprocess.cmake
set(TEST_FILE CMakeFiles/preprocess.dir/preprocess.F.i)
file(READ ${TEST_FILE} CONTENTS)
if("${CONTENTS}" MATCHES "PRINT *")
  message(STATUS "${TEST_FILE} created successfully!")
else()
  message(FATAL_ERROR "${TEST_FILE} creation failed!")
endif()
back to top