fix: include test dir if BUILD_TOML_TESTS=ON

This commit is contained in:
ToruNiina 2024-06-16 20:56:24 +09:00
parent acf00fc476
commit 18ccd6b237

View File

@ -43,7 +43,7 @@ if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
if(${TOML11_BUILD_TESTS})
if(${TOML11_BUILD_TESTS} OR ${TOML11_BUILD_TOML_TESTS})
add_subdirectory(tests)
endif()