Skip to content

Commit

Permalink
Merge pull request #4 from junaire/jun/make_lib_static
Browse files Browse the repository at this point in the history
Fix -fPIC errors
  • Loading branch information
hydai authored Aug 21, 2024
2 parents a6f9fe8 + 2d12413 commit fa07917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Always export compile_commands.json for lsp like clangd.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Expand Down

0 comments on commit fa07917

Please sign in to comment.