Ok I rebuild everything with NSTATIC=ON (cmake variable) and now it's OK in release
C:\lib\build\ceres-solver\bin\Release\ba_sparsecholesky_suitesparse_auto_threads_test.exe
Running main() from gmock_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BundleAdjustmentTest
[ RUN ] BundleAdjustmentTest.SparseNormalCholesky_SuiteSparse_AutomaticOrdering_Threads
[ OK ] BundleAdjustmentTest.SparseNormalCholesky_SuiteSparse_AutomaticOrdering_Threads (1620 ms)
[----------] 1 test from BundleAdjustmentTest (1620 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (1621 ms total)
[ PASSED ] 1 test.
but in debug
C:\Users\laurent>C:\lib\build\ceres-solver\bin\debug\ba_sparsecholesky_suitesparse_auto_threads_test.exe
Running main() from gmock_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BundleAdjustmentTest
[ RUN ] BundleAdjustmentTest.SparseNormalCholesky_SuiteSparse_AutomaticOrdering_Threads
[ OK ] BundleAdjustmentTest.SparseNormalCholesky_SuiteSparse_AutomaticOrdering_Threads (79261 ms)
[----------] 1 test from BundleAdjustmentTest (79261 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (79265 ms total)
[ PASSED ] 1 test.
idem for ba_sparsecholesky_suitesparse_auto_test.exe
thanks