Files
CMake/Tests/RunCMake/load_cache/NewForm_Script.cmake
Alex Turbov bc8621d999 Fix: A lot of typos in code found by typos
Yet another great code spellchecker: https://github.com/crate-ci/typos/

(Will be added later as a `pre-commit` hook)
2025-01-12 18:49:34 +04:00

17 lines
554 B
CMake

load_cache(${RunCMake_BINARY_DIR}/test_project READ_WITH_PREFIX LOAD_CACHE_TEST_
CACHE_STRING
CACHE_BOOL
CACHE_INTERNAL)
if(NOT LOAD_CACHE_TEST_CACHE_STRING STREQUAL "cache string")
message(FATAL_ERROR "CACHE_STRING: was ${CACHE_STRING}, expected \"cache string\"")
endif()
if(NOT LOAD_CACHE_TEST_CACHE_BOOL)
message(FATAL_ERROR "CACHE_BOOL: was falsey, expected ON")
endif()
if(NOT LOAD_CACHE_TEST_CACHE_INTERNAL STREQUAL "cache internal")
message(FATAL_ERROR "CACHE_INTERNAL: was ${CACHE_INTERNAL}, expected \"cache internal\"")
endif()