Skip to content

Commit ec1ece5

Browse files
committed
Fix Windows UT targets
Change-Id: Id6077a31dad30f6c71045e6d0e347b971c1484e6
1 parent d78c27c commit ec1ece5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/CJUnitTestsPort/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ SET(test_CJUnitTestsPort_sources
7171
# It's convinient for VS users to have headers as part of project
7272
IF(WIN32)
7373
SET(test_CJUnitTestsPort_sources
74-
${tests_CJUnitTestsPort_sources}
74+
${test_CJUnitTestsPort_sources}
7575
BaseTestFixture.h
7676
../common/stringutils.h
7777
resources.h
@@ -90,7 +90,7 @@ IF(WIN32)
9090
)
9191
ENDIF(WIN32)
9292

93-
add_unit_test(CJUnitTestsPort)
93+
add_unit_test(CJUnitTestsPort CJUnitTestsPort)
9494

9595
#Copy sql.properties file to build dir
9696
file(COPY sql.properties DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function(add_unit_test NAME)
104104
)
105105
TARGET_LINK_LIBRARIES(${TGT_NAME} ${MY_TARGET_LINK_LIBRARIES} ${MY_GCOV_LINK_LIBRARIES})
106106

107-
ADD_TEST(jdbc_test_${NAME} ${NAME})
107+
ADD_TEST(jdbc_${TGT_NAME} ${NAME})
108108

109109
MESSAGE(STATUS "Configuring unit tests - ${NAME}")
110110

test/unit/bugs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ SET(test_bugs_sources
3434

3535
IF(WIN32)
3636
SET(test_bugs_sources
37-
${bugs_sources}
37+
${test_bugs_sources}
3838
bugs.h
3939
../unit_fixture.h)
4040

4141
ENDIF(WIN32)
4242

43-
add_unit_test(bugs)
43+
add_unit_test(bugs bugs)
4444

4545
MESSAGE(STATUS "Configuring bugs test cases - unsorted")

0 commit comments

Comments
 (0)