1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-19 09:49:21 +03:00

Proper fix for #2122 #2150

Bundled cpu_features needs to be built with PIC but SHARED_LIBS should
be OFF.
This commit is contained in:
Koichiro Iwao
2025-09-05 22:35:52 +09:00
parent c399ce6bbe
commit efb04daa34

View File

@ -126,7 +126,8 @@ if(UNIX)
target_link_libraries(mayaqua PRIVATE cpu_features)
else()
message("-- Using bundled cpu_features")
set(BUILD_SHARED_LIBS ON)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_subdirectory(3rdparty/cpu_features)
target_link_libraries(mayaqua PRIVATE cpu_features)
endif()