Skip to content

Commit

Permalink
cmake: use position independent code
Browse files Browse the repository at this point in the history
  • Loading branch information
masscry committed May 3, 2024
1 parent 6c349d6 commit 5e2a760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ add_library(setup INTERFACE)
target_compile_features(setup INTERFACE cxx_std_20)
target_compile_options(setup
INTERFACE
-Wall -Wextra -Werror -g
-Wall -Wextra -Werror -g -fPIC
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=always;-Wno-error=parentheses>
$<$<CXX_COMPILER_ID:Clang>:-fcolor-diagnostics>
)
Expand Down

0 comments on commit 5e2a760

Please sign in to comment.