Skip to content

Commit

Permalink
cmake: enable CMAKE_POSITION_INDEPENDENT_CODE
Browse files Browse the repository at this point in the history
Closes #207

Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins committed Feb 12, 2025
1 parent 74c9267 commit 64a2f82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ project(${LIBJWT_PROJECT}
HOMEPAGE_URL ${LIBJWT_HOMEPAGE_URL}
LANGUAGES C)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_compile_options(-Wall -Werror -Wextra -Wunused)

# Must be set after the above
Expand Down

0 comments on commit 64a2f82

Please sign in to comment.