Skip to content

Commit

Permalink
Fix some GCC builds (#4051)
Browse files Browse the repository at this point in the history
(cherry picked from commit dc91526ff4f003330625e3e62f1e895cc112949d)
  • Loading branch information
eustas committed Jan 24, 2025
1 parent fb1f18d commit 9c53f8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions third_party/skcms.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ function(target_link_skcms TARGET_NAME)
"${_sources_dir}/src/skcms_TransformBaseline.cc"
)

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set_source_files_properties("${_sources_dir}/src/skcms_TransformBaseline.cc"
PROPERTIES COMPILE_OPTIONS "-Wno-maybe-uninitialized"
TARGET_DIRECTORY ${TARGET_NAME}
)
endif()

if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(_use_avx2 ${CXX_MAVX2_SUPPORTED} AND ${CXX_MF16C_SUPPORTED})
set(_use_avx512 ${CXX_MAVX512F_SUPPORTED} AND ${CXX_MAVX512DQ_SUPPORTED} AND ${CXX_MAVX512CD_SUPPORTED} AND ${CXX_MAVX512BW_SUPPORTED} AND ${CXX_MAVX512VL_SUPPORTED})
Expand Down

0 comments on commit 9c53f8e

Please sign in to comment.