mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
cmake: build static externals as PIC
This commit is contained in:
parent
65ed1e7054
commit
5e95a23174
3
externals/CMakeLists.txt
vendored
3
externals/CMakeLists.txt
vendored
@ -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
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user