Files
FEX-Emu--FEX/Source/Tools/FEXServer/CMakeLists.txt
T
Ryan Houdek 0dc33ec893 cmake: Remove the static-pie compilation option
Due to glibc issues around static applications doing dlopen this is a
fundamentally broken option and no longer supported by FEX.

Remove the option entirely as to not be confusing.

We kept this around initially for chroot support, but with our RootFS
mounting AArch64 folders inside the chroot this isn't necessary anymore.
2022-08-04 19:22:11 -07:00

30 lines
586 B
CMake

set(NAME FEXServer)
set(SRCS Main.cpp
ArgumentLoader.cpp
Logger.cpp
PipeScanner.cpp
ProcessPipe.cpp
SquashFS.cpp)
add_executable(${NAME} ${SRCS})
target_include_directories(${NAME} PRIVATE
${CMAKE_BINARY_DIR}/generated
${CMAKE_SOURCE_DIR}/Source/)
target_link_libraries(${NAME} PRIVATE FEXCore Common ${PTHREAD_LIB})
if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
target_link_options(${NAME}
PRIVATE
"LINKER:--gc-sections"
"LINKER:--strip-all"
"LINKER:--as-needed"
)
endif()
install(TARGETS ${NAME}
RUNTIME
DESTINATION bin
COMPONENT runtime)