@@ -14,13 +14,6 @@ if (MSVC)
14
14
# digit.
15
15
math (EXPR MSVC_TOOLSET_MAJOR "${MSVC_TOOLSET_VERSION} /10" )
16
16
endif ()
17
- if (CMAKE_CROSSCOMPILING )
18
- # Ensure that all "true" (resp. "false") settings are represented by
19
- # the same string.
20
- set (CMAKE_CROSSCOMPILING_STR "ON" )
21
- else ()
22
- set (CMAKE_CROSSCOMPILING_STR "OFF" )
23
- endif ()
24
17
25
18
if (NOT PACKAGE_FIND_NAME STREQUAL "@PROJECT_VARIANT_NAME@" )
26
19
# Check package name (in particular, because of the way cmake finds
@@ -43,16 +36,6 @@ elseif (MSVC AND NOT (
43
36
# Reject if there's a mismatch in MSVC compiler versions
44
37
set (REASON "MSVC_TOOLSET_VERSION = @MSVC_TOOLSET_VERSION@" )
45
38
set (PACKAGE_VERSION_UNSUITABLE TRUE )
46
- elseif (NOT CMAKE_CROSSCOMPILING_STR STREQUAL "@CMAKE_CROSSCOMPILING_STR@" )
47
- # Reject if there's a mismatch in ${CMAKE_CROSSCOMPILING}
48
- set (REASON "cross-compiling = @CMAKE_CROSSCOMPILING@" )
49
- set (PACKAGE_VERSION_UNSUITABLE TRUE )
50
- elseif (CMAKE_CROSSCOMPILING AND
51
- NOT (CMAKE_SYSTEM_NAME STREQUAL "@CMAKE_SYSTEM_NAME@" AND
52
- CMAKE_SYSTEM_PROCESSOR STREQUAL "@CMAKE_SYSTEM_PROCESSOR@" ))
53
- # Reject if cross-compiling and there's a mismatch in the target system
54
- set (REASON "target = @CMAKE_SYSTEM_NAME@-@CMAKE_SYSTEM_PROCESSOR@" )
55
- set (PACKAGE_VERSION_UNSUITABLE TRUE )
56
39
elseif (PACKAGE_FIND_VERSION )
57
40
if (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION )
58
41
set (PACKAGE_VERSION_EXACT TRUE )
0 commit comments