Skip to content

Commit

Permalink
Update submodule flunder
Browse files Browse the repository at this point in the history
  • Loading branch information
alerei committed Jan 19, 2024
1 parent dba26b9 commit 5adcdff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ else()
add_definitions(-DFLECS_FINAL_UNLESS_TESTED=final)
endif()

# workaround for gcc-12 bug
add_compile_options(-Wno-error=restrict)

# add install directory to rpath
set(CMAKE_INSTALL_RPATH "/opt/flecs/lib")

Expand All @@ -57,9 +60,11 @@ add_custom_command(TARGET packages POST_BUILD
COMMAND echo -n ${CORE_VERSION} >${CMAKE_INSTALL_PREFIX}/latest_flecs_${ARCH}
)

add_custom_target(
coverage
DEPENDS test
COMMAND mkdir -p coverage
COMMAND gcovr -r ${CMAKE_SOURCE_DIR} -e ${CMAKE_SOURCE_DIR}/external/ -e ${CMAKE_BINARY_DIR} --html-details coverage/coverage.html
)
if (NOT TARGET coverage)
add_custom_target(
coverage
DEPENDS test
COMMAND mkdir -p coverage
COMMAND gcovr -r ${CMAKE_SOURCE_DIR} -e ${CMAKE_SOURCE_DIR}/examples/ -e ${CMAKE_SOURCE_DIR}/external/ -e ${CMAKE_BINARY_DIR} --html-details coverage/coverage.html
)
endif()

0 comments on commit 5adcdff

Please # to comment.