depchain-modules-json-file-rebuild-check.cmake 678 B

123456789101112
  1. if (RunCMake_GENERATOR_IS_MULTI_CONFIG)
  2. set(dep_modules_json_path "CMakeFiles/depchain_modules_json_file.dir/Debug/CXX.dd")
  3. set(modules_json_path "CMakeFiles/depchain_with_modules_json_file.dir/Debug/CXXModules.json")
  4. else ()
  5. set(dep_modules_json_path "CMakeFiles/depchain_modules_json_file.dir/CXX.dd")
  6. set(modules_json_path "CMakeFiles/depchain_with_modules_json_file.dir/CXXModules.json")
  7. endif ()
  8. if ("${RunCMake_TEST_BINARY_DIR}/${modules_json_path}" IS_NEWER_THAN "${RunCMake_TEST_BINARY_DIR}/${dep_modules_json_path}")
  9. list(APPEND RunCMake_TEST_FAILED
  10. "Object '${dep_modules_json_path}' should have recompiled if '${modules_json_path}' changed.")
  11. endif ()