Skip to content

Commit

Permalink
add -O3 and -fPIC to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawwave committed Feb 21, 2024
1 parent ee048d2 commit 423ce17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ install(FILES src/FastaVectorString.h
DESTINATION include
)

# Add -O3 and -fPIC flags for the shared library
target_compile_options(
fastavector
PRIVATE
-O3
-fPIC
)
# Add -O3 and -fPIC flags for static library
target_compile_options(
fastavector_static
PRIVATE
-O3
-fPIC
)



# ----------
# Unit Tests
Expand Down

0 comments on commit 423ce17

Please sign in to comment.