summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/check-part3.cmake
blob: 70ccfe167054286eb356e7759bc07c0b0132ae4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

include(${CMAKE_CURRENT_LIST_DIR}/check-common.cmake)

check(test_version_greater_1 "0")
check(test_version_greater_2 "1")
check(test_version_less_1 "0")
check(test_version_less_2 "1")
check(test_version_equal_1 "0")
check(test_version_equal_2 "1")

foreach(c debug release relwithdebinfo minsizerel)
  if(config AND NOT config STREQUAL NoConfig)
    if(NOT "${test_imported_${c}}" MATCHES "^;/imported2/include$"
        AND NOT "${test_imported_${c}}" MATCHES "^/imported1/include;$")
      message(SEND_ERROR "test_imported_${c} is not correct: ${test_imported_${c}}")
    endif()
  else()
    if(NOT "${test_imported_${c}}" MATCHES "^;$")
      message(SEND_ERROR "test_imported_${c} is not an empty list: ${test_imported_${c}}")
    endif()
  endif()
endforeach()

check(test_alias_file_exe "1")
check(test_alias_file_lib "1")
check(test_alias_target_name "1")
check(test_early_termination_1 "$<:")
check(test_early_termination_2 "$<:,")
check(test_platform_id "${system_name}")
foreach(system Linux Windows Darwin)
  if(system_name STREQUAL system)
    check(test_platform_id_${system} 1)
  else()
    check(test_platform_id_${system} 0)
  endif()
endforeach()
check(lower_case "mi,xed")
check(upper_case "MIX,ED")
check(make_c_identifier "_4f_oo__bar__")
check(equal1 "0")
check(equal2 "1")
check(equal3 "1")
check(equal4 "0")
check(equal5 "1")
check(equal6 "1")
check(equal7 "1")
check(equal8 "1")
check(equal9 "0")
check(equal10 "1")
check(equal11 "1")
check(equal12 "1")
check(equal13 "1")
check(equal14 "1")
check(equal15 "1")
check(equal16 "1")
check(equal17 "0")
check(equal18 "1")
check(equal19 "0")
check(equal20 "1")
check(equal21 "1")
check(equal22 "0")
check(equal23 "1")