summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-03 18:29:06 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-03 18:29:53 (GMT)
commitfd714dd2b83b86ad4ff5aaf0f7bbfec88525f08f (patch)
treebfea8c6aec09b86c9223f0c1b15f3579d9152156
parent42edf53ce2b201ca022d1f8170bb4323226c468a (diff)
downloadCMake-fd714dd2b83b86ad4ff5aaf0f7bbfec88525f08f.zip
CMake-fd714dd2b83b86ad4ff5aaf0f7bbfec88525f08f.tar.gz
CMake-fd714dd2b83b86ad4ff5aaf0f7bbfec88525f08f.tar.bz2
Tests: Fix FindPackageModeMakefileTest with CMAKE_OSX_ARCHITECTURES
-rw-r--r--Tests/FindPackageModeMakefileTest/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FindPackageModeMakefileTest/CMakeLists.txt b/Tests/FindPackageModeMakefileTest/CMakeLists.txt
index 909ba30..0b15be8 100644
--- a/Tests/FindPackageModeMakefileTest/CMakeLists.txt
+++ b/Tests/FindPackageModeMakefileTest/CMakeLists.txt
@@ -26,6 +26,9 @@ if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Makefile" AND
if(CMAKE_OSX_SYSROOT)
string(APPEND EXTRA_FLAGS " -isysroot ${CMAKE_OSX_SYSROOT}")
endif()
+ foreach(arch ${CMAKE_OSX_ARCHITECTURES})
+ string(APPEND EXTRA_FLAGS " -arch ${arch}")
+ endforeach()
endif()
# now set up the test: