cmake/Tests/RunCMake/install/FILES-EXTRA_ISPC_TARGET_OBJECTS-all-check.cmake

16 lines
399 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
set(objs obj1 obj2)
2023-07-02 19:51:09 +02:00
if("${CMAKE_SYSTEM_NAME};${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Darwin;arm64")
set(targets "")
else()
set(targets sse2 sse4 avx avx2)
endif()
2021-09-14 00:13:48 +02:00
foreach(o IN LISTS objs)
set(item "objs/${o}\\.ispc\\.(o|obj)")
check_installed("${item}")
foreach(t IN LISTS targets)
set(item "objs/${o}\\.ispc_${t}\\.(o|obj)")
check_installed("${item}")
endforeach()
endforeach()