From b770d59cf141770212c0de8862cfea27d31a8f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blar?= Date: Tue, 28 May 2024 11:49:27 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbf0d5cfc..440552cbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,10 @@ if (NOT USE_SYSTEM_DEPENDENCIES) HAS_STD_FORMAT) endif () +if (BUILD_TESTING) + add_subdirectory(tests) +endif () + set(LIBRARY_NAME faker-cxx) set(FAKER_SOURCES @@ -119,6 +123,3 @@ else () target_link_libraries(${LIBRARY_NAME} PRIVATE fmt) endif () -if (BUILD_TESTING) - add_subdirectory(tests) -endif ()