specify target triple in interface too

This commit is contained in:
ConfiG 2024-02-13 10:30:12 +03:00
parent deeaae70e6
commit 762419db22
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B

View file

@ -196,6 +196,8 @@ 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)
endif()