mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 13:18:37 -06:00
Tests: Fix FindPackageModeMakefileTest with CMAKE_OSX_ARCHITECTURES
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user