update clang target triplet

This commit is contained in:
mat 2024-02-24 18:29:50 -03:00 committed by GitHub
parent c7a1f76f1a
commit 9fea8d8320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,10 +192,10 @@ if (WIN32)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU")
# target x86 on windows with clang
target_compile_options(${PROJECT_NAME} INTERFACE --target=i686-windows-msvc)
target_link_options(${PROJECT_NAME} INTERFACE --target=i686-windows-msvc)
add_compile_options(--target=i686-windows-msvc)
add_link_options(--target=i686-windows-msvc)
target_compile_options(${PROJECT_NAME} INTERFACE --target=i686-pc-windows-msvc)
target_link_options(${PROJECT_NAME} INTERFACE --target=i686-pc-windows-msvc)
add_compile_options(--target=i686-pc-windows-msvc)
add_link_options(--target=i686-pc-windows-msvc)
endif()
endif()