diff options
Diffstat (limited to 'cmake/scripts/common/CheckTargetPlatform.cmake')
| -rw-r--r-- | cmake/scripts/common/CheckTargetPlatform.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/scripts/common/CheckTargetPlatform.cmake b/cmake/scripts/common/CheckTargetPlatform.cmake index 526e4bd..d776085 100644 --- a/cmake/scripts/common/CheckTargetPlatform.cmake +++ b/cmake/scripts/common/CheckTargetPlatform.cmake | |||
| @@ -29,7 +29,10 @@ function(check_target_platform dir target_platform build) | |||
| 29 | string(SUBSTRING ${platform} 1 ${platform_length} platform) | 29 | string(SUBSTRING ${platform} 1 ${platform_length} platform) |
| 30 | 30 | ||
| 31 | # check if the current platform does not match the extracted platform | 31 | # check if the current platform does not match the extracted platform |
| 32 | if(NOT ${platform} STREQUAL ${target_platform}) | 32 | if(${platform} STREQUAL ${target_platform}) |
| 33 | set(${build} FALSE) | ||
| 34 | break() | ||
| 35 | elseif(NOT ${platform} STREQUAL ${target_platform}) | ||
| 33 | set(${build} TRUE) | 36 | set(${build} TRUE) |
| 34 | endif() | 37 | endif() |
| 35 | endif() | 38 | endif() |
