Skip to content

Commit

Permalink
Enable unity build for test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fkutzner committed Apr 13, 2024
1 parent 8134cea commit 20f97af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testdeps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/Catch2/CMakeLists.txt
message(FATAL_ERROR "git submodules have not been set up yet. Run git submodule update --init")
endif()

# Using a unity build for test dependencies since Catch2 is rather large,
# and per-file compiler messages are not needed for dependencies:
set(CMAKE_UNITY_BUILD ON)

add_subdirectory(Catch2)

if (NOT WIN32)
Expand Down

0 comments on commit 20f97af

Please sign in to comment.