From 2746e8dd19836a825e0c600e64cefeee22315d40 Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Mon, 25 Aug 2025 21:52:15 +0900 Subject: [PATCH] Build bundled cpu_features with PIC After updating bundled cpu_features to 0.9.0, set_property() is not effective. We need to use set() instead. Resolves: #2122 #2150 --- src/Mayaqua/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mayaqua/CMakeLists.txt b/src/Mayaqua/CMakeLists.txt index 9418b824..5be70a5a 100644 --- a/src/Mayaqua/CMakeLists.txt +++ b/src/Mayaqua/CMakeLists.txt @@ -125,8 +125,9 @@ if(UNIX) message("-- Using system's cpu_features") target_link_libraries(mayaqua PRIVATE cpu_features) else() + message("-- Using bundled cpu_features") + set(BUILD_SHARED_LIBS ON) add_subdirectory(3rdparty/cpu_features) - set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(mayaqua PRIVATE cpu_features) endif()