Skip to content

Commit

Permalink
Fix OpenMP stub patch used for FastANI on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 21, 2024
1 parent 450898f commit c54de14
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/FastANI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ foreach(_header ${FASTANI_HEADERS})
set(FASTANI_GENERATED_HEADERS ${FASTANI_GENERATED_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/include/${_header})
endforeach()

add_library(fastani src/cgi/core_genome_identity.cpp ${FASTANI_GENERATED_HEADERS})
file(COPY omp.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/include/src)
add_library(fastani src/cgi/core_genome_identity.cpp omp.cpp ${FASTANI_GENERATED_HEADERS})
target_compile_definitions(fastani PUBLIC USE_BOOST=1 BOOST_NO_EXCEPTIONS=1)
target_include_directories(fastani PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/include/src)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pyfastani/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_subdirectory(_sequtils)

cython_extension(_fasta LINKS sequtils )
cython_extension(_fastani LINKS fastani sequtils SOURCES omp.cpp _utils.cpp)
cython_extension(_fastani LINKS fastani sequtils SOURCES _utils.cpp)

0 comments on commit c54de14

Please sign in to comment.