PchMultilanguage-check.cmake 795 B

1234567891011121314151617
  1. if (NOT RunCMake_GENERATOR_IS_MULTI_CONFIG)
  2. set(foobar_pch_h_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/CMakeFiles/foobar.dir/cmake_pch.h")
  3. set(foobar_pch_hxx_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/CMakeFiles/foobar.dir/cmake_pch.hxx")
  4. else()
  5. set(foobar_pch_h_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/cmake_pch.h")
  6. set(foobar_pch_hxx_header "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/foobar.dir/cmake_pch.hxx")
  7. endif()
  8. if (NOT EXISTS ${foobar_pch_h_header})
  9. set(RunCMake_TEST_FAILED "Generated foobar C pch header ${foobar_pch_h_header} does not exist")
  10. return()
  11. endif()
  12. if (NOT EXISTS ${foobar_pch_hxx_header})
  13. set(RunCMake_TEST_FAILED "Generated foobar C++ pch header ${foobar_pch_hxx_header} does not exist")
  14. return()
  15. endif()