Skip to content

Commit 0f57b57

Browse files
fix unit tests to link with static lib only
1 parent 8065c3c commit 0f57b57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ SET (TESTS_C_UNIT
4949
test_unit_connect_parameters
5050
test_unit_logger
5151
test_unit_retry_context
52-
test_get_query_result_response
53-
test_get_describe_only_query_result
5452
test_unit_oauth
55-
test_unit_mfa_auth)
53+
test_unit_mfa_auth
54+
test_get_query_result_response
55+
test_get_describe_only_query_result)
5656

5757
SET(TESTS_CXX
5858
test_unit_jwt
@@ -143,6 +143,7 @@ endif ()
143143

144144
if (WIN32)
145145
find_library(CMOCKA_LIB cmocka_a.lib PATHS ../deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/cmocka/lib/ REQUIRED NO_DEFAULT_PATH)
146+
146147
if ($ENV{ARROW_FROM_SOURCE})
147148
set(BOOST_ALL_LIBS ${BOOST_FILESYSTEM_LIB} ${BOOST_SYSTEM_LIB})
148149
else ()
@@ -155,7 +156,6 @@ if (LINUX)
155156
message("libuuid.a is located at " ${UUID_LIB})
156157
endif ()
157158
message("valgrind suppression file is located at " ${VALGRIND_SUPPRESSION})
158-
159159
if (LINUX)
160160
set(TESTLIB_OPTS_C snowflakeclient ${CMOCKA_LIB} ${ARROW_ALL_LIBS} ${AZURE_STORAGE_LITE_LIB} -Wl,--whole-archive telemetry curl ssl crypto uuid
161161
-Wl,--no-whole-archive pthread -Wl,--as-needed -static-libgcc -static-libstdc++)

0 commit comments

Comments
 (0)