Skip to content

Commit

Permalink
Revert "[AD-794] attempt to make Linux code coverage not include file…
Browse files Browse the repository at this point in the history
…s under usr/"

This reverts commit 6c68cb8.
  • Loading branch information
alinaliBQ committed Jun 20, 2022
1 parent 6c68cb8 commit 0e285d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/odbc-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ add_executable(${TARGET} ${SOURCES})

target_link_libraries(${TARGET} ${ODBC_LIBRARIES})
target_link_libraries(${TARGET} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} mongo::mongocxx_shared ${JNI_LIBRARIES})
target_code_coverage(${TARGET} AUTO ALL)

add_definitions(-DUNICODE=1)
if (WIN32)
target_code_coverage(${TARGET} AUTO ALL)
if (MSVC)
# On Windows, min() and max() are defined macro. This causes a colision with MONGOCXX library.
# See: http://www.suodenjoki.dk/us/archive/2010/min-max.htm
Expand All @@ -210,11 +210,9 @@ if (WIN32)
target_link_libraries(${TARGET} legacy_stdio_definitions odbccp32 shlwapi)
endif()
elseif(APPLE)
target_code_coverage(${TARGET} AUTO ALL)
add_definitions(-DBOOST_TEST_DYN_LINK)
target_link_libraries(${TARGET} iodbcinst ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
else()
target_code_coverage(${TARGET} EXCLUDE usr/*)
add_definitions(-DBOOST_TEST_DYN_LINK)
target_link_libraries(${TARGET} odbcinst ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
endif()
Expand Down

0 comments on commit 0e285d1

Please sign in to comment.