From 5f8335c1e49ce108ef3481863833c98efa00411b Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 2 Jul 2020 23:09:26 +0200 Subject: sync with upstream --- cmake/scripts/common/CheckTargetPlatform.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmake/scripts/common/CheckTargetPlatform.cmake') 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) string(SUBSTRING ${platform} 1 ${platform_length} platform) # check if the current platform does not match the extracted platform - if(NOT ${platform} STREQUAL ${target_platform}) + if(${platform} STREQUAL ${target_platform}) + set(${build} FALSE) + break() + elseif(NOT ${platform} STREQUAL ${target_platform}) set(${build} TRUE) endif() endif() -- cgit v1.2.3