cmake: build static externals as PIC

This commit is contained in:
Alexandre Bouvier 2022-04-23 19:47:35 +02:00 committed by merry
parent 65ed1e7054
commit 5e95a23174

View file

@ -1,5 +1,8 @@
# Always build externals as static libraries, even when dynarmic is built as shared # Always build externals as static libraries, even when dynarmic is built as shared
set(BUILD_SHARED_LIBS OFF) if (BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
# For libraries that already come with a CMakeLists file, # For libraries that already come with a CMakeLists file,
# simply add the directory to that file as a subdirectory # simply add the directory to that file as a subdirectory