Skip to content

Commit

Permalink
rename cmake build tests flag (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
cieslarmichal authored Jul 17, 2023
1 parent 1c5317e commit 9fca52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(${PROJECT_NAME} CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

option(BUILD_TESTS DEFAULT ON)
option(BUILD_FAKER_TESTS DEFAULT ON)

if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++20 /permissive-")
Expand Down Expand Up @@ -62,7 +62,7 @@ target_include_directories(${LIBRARY_NAME}
"${CMAKE_CURRENT_LIST_DIR}/include"
)

if (BUILD_TESTS)
if (BUILD_FAKER_TESTS)
add_subdirectory(externals/googletest)

set(GTEST_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/googletest/googletest/include")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ C++ Faker is a modern C++20 open-source library for generating fake data for tes

The library is heavily inspired by [Faker.js](https://github.com/faker-js/faker).

Dependencies: GTest for building library tests (can be disabled by setting CMake flag BUILD_TESTS=OFF)
Dependencies: GTest for building library tests (can be disabled by setting CMake flag BUILD_FAKER_TESTS=OFF)

## 🎯 Goal

Expand Down

0 comments on commit 9fca52b

Please sign in to comment.