Skip to content

Commit 75606d3

Browse files
committed
Add second (empty) file to catch duplicate symbols as reported in issue #34.
1 parent ededd3e commit 75606d3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if (GTL_BUILD_TESTS)
149149

150150
## --------------- misc -----------------------------------------------
151151
gtl_cc_test(NAME lru_cache SRCS "tests/misc/lru_cache_test.cpp" DEPS ${GTL_GTEST_LIBS})
152-
gtl_cc_test(NAME bit_vector SRCS "tests/misc/bitvector_test.cpp" DEPS ${GTL_GTEST_LIBS})
152+
gtl_cc_test(NAME bit_vector SRCS "tests/misc/bitvector_test.cpp" "tests/misc/bitvector_test2.cpp" DEPS ${GTL_GTEST_LIBS})
153153
gtl_cc_test(NAME vector SRCS "tests/misc/vector_test.cpp" DEPS ${GTL_GTEST_LIBS})
154154
endif()
155155

tests/misc/bitvector_test2.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// ---------------------------------------------------------------------------
2+
// Copyright (c) 2022, Gregory Popovitch - [email protected]
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// https://www.apache.org/licenses/LICENSE-2.0
9+
// ---------------------------------------------------------------------------
10+
#include "gtest/gtest.h"
11+
#include <gtl/bit_vector.hpp>

0 commit comments

Comments
 (0)