
set(description [[config() should not automatically set the configuration if it has already been set]])

message(STATUS "description \"${description}\"")
message(STATUS "expect exit zero")

include(configuration.cmake)

set(user_defined_test success-value CACHE INTERNAL "docstring")

config(
  "docstring"
  user_defined_test

  VALUE success-value OFF # if the configuration is not set to this value, it will never be set to this value.
  VALUE error-value
)

if(NOT ("${user_defined_test}" STREQUAL "success-value"))
  message(FATAL_ERROR "failed")
endif()
