Compare commits

...

2 Commits

Author SHA1 Message Date
yzct12345
857f0e1f3e cmake: Fix clang 2021-07-30 03:57:47 +00:00
yzct12345
ca8b36b0cf cmake: Disable pie 2021-07-30 01:33:39 +00:00

View File

@@ -144,6 +144,11 @@ else()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
add_compile_options(-fno-pie)
add_link_options(-no-pie)
endif()
# Output binaries to bin/
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)