Tests: Fix FindPackageModeMakefileTest with CMAKE_OSX_ARCHITECTURES

This commit is contained in:
Brad King
2021-03-03 10:29:06 -08:00
parent 42edf53ce2
commit fd714dd2b8

View File

@@ -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: