Fix how we specify CATCH_CONFIG_FAST_COMPILE

Fixes a warning that was emitted about how we were doing this wrong
after CMake policy 0077 was added.
This commit is contained in:
Chris Thrasher 2023-05-15 16:02:45 -06:00
parent 9855552f64
commit e6cc75f8a6

View File

@ -3,7 +3,7 @@ include(FetchContent)
add_subdirectory(install) add_subdirectory(install)
set_target_warnings(test-sfml-install) set_target_warnings(test-sfml-install)
set(CATCH_CONFIG_FAST_COMPILE ON) set(CATCH_CONFIG_FAST_COMPILE ON CACHE BOOL "")
FetchContent_Declare(Catch2 FetchContent_Declare(Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.3.2) GIT_TAG v3.3.2)