Skip to content

Commit 1fafc86

Browse files
author
Marcin Sobieszczanski
committed
rename target "tests" into "tests_runner" because it conflicts with the "tests" directory (when running cmake in the source code dir; "cmake .")
1 parent 3383a31 commit 1fafc86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ enable_testing()
3434
add_library (sqlite_modern_cpp INTERFACE)
3535
target_include_directories(sqlite_modern_cpp INTERFACE hdr/)
3636

37-
add_executable(tests ${TEST_SOURCES})
38-
target_include_directories(tests INTERFACE ${SQLITE3_INCLUDE_DIRS})
37+
add_executable(tests_runner ${TEST_SOURCES})
38+
target_include_directories(tests_runner INTERFACE ${SQLITE3_INCLUDE_DIRS})
3939
if(ENABLE_SQLCIPHER_TESTS)
40-
target_link_libraries(tests Catch::Catch sqlite_modern_cpp sqlite3::sqlite3 -lsqlcipher)
40+
target_link_libraries(tests_runner Catch::Catch sqlite_modern_cpp sqlite3::sqlite3 -lsqlcipher)
4141
else()
42-
target_link_libraries(tests Catch::Catch sqlite_modern_cpp sqlite3::sqlite3)
42+
target_link_libraries(tests_runner Catch::Catch sqlite_modern_cpp sqlite3::sqlite3)
4343
endif()
4444

45-
catch_discover_tests(tests)
46-
target_compile_options(tests PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus> )
45+
catch_discover_tests(tests_runner)
46+
target_compile_options(tests_runner PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus> )
4747

4848
# Place the file in the source directory, permitting us to place a single configuration file for YCM there.
4949
# YCM is the code-completion engine for (neo)vim https://github.com/Valloric/YouCompleteMe

0 commit comments

Comments
 (0)