Skip to content

Commit

Permalink
Merge pull request #14 from TravisWheelerLab/optimizedCmakeCompile
Browse files Browse the repository at this point in the history
add -O3 and -fPIC to cmake
  • Loading branch information
Sawwave authored Feb 21, 2024
2 parents a01919c + 423ce17 commit 1e9b886
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 1e9b886

Please sign in to comment.