summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake
blob: 7801c3da556d51d04e76eacd5fcf7389569b26ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include("${RunCMake_SOURCE_DIR}/TestVariable.cmake")

if(RunCMake_GENERATOR STREQUAL "NMake Makefiles JOM")
  # JOM removes the '$' and content following it.
else()
  test_environment_variable("TEST_DOLLAR" "x\\$x")
endif()
test_environment_variable("TEST_GENERATOR" "${RunCMake_GENERATOR}")
test_environment_variable("TEST_PRESET_NAME" "xmacrosx")
test_environment_variable("TEST_SOURCE_DIR_" "x[^\n]*[/\\\\]Tests[/\\\\]RunCMake[/\\\\]CMakePresetsBuild[/\\\\]Goodx")
test_environment_variable("TEST_SOURCE_DIR_NAME" "xGoodx")
test_environment_variable("TEST_SOURCE_PARENT_DIR" "x[^\n]*[/\\\\]Tests[/\\\\]RunCMake[/\\\\]CMakePresetsBuildx")

include("${RunCMake_SOURCE_DIR}/check.cmake")