summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorGravatar Bruno Pitrus <brunopitrus@hotmail.com>2022-07-11 18:27:39 +0200
committerGravatar Bruno Pitrus <brunopitrus@hotmail.com>2022-07-11 18:27:39 +0200
commit09e96049995584c3489e4bd1467313e3e85af99c (patch)
tree7f49361988b005a1bd9027a6626c1d6aef46491f /CMake
parent427d8f5756e908d8573e45b8e8c328394f038c36 (diff)
Do not leak -maes -msse4.1 into pkgconfig
Diffstat (limited to 'CMake')
-rw-r--r--CMake/AbseilHelpers.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
index ebe9ddc8..9cd87c51 100644
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -166,6 +166,8 @@ function(absl_cc_library)
set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
elseif(${cflag} MATCHES "^(-W|/w[1234eo])")
# Don't impose our warnings on others.
+ elseif(${cflag} MATCHES "^-m")
+ # Don't impose CPU instruction requirements on others, as the code performs feature detection on runtime.
else()
set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
endif()