Unverified Commit 685ad74d authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #1288 from yipdw/bugfix/use-64-bit-file-access

Use _FILE_OFFSET_BITS=64 when building on Linux 32-bit systems
parents b848ff8d 288ea115
......@@ -48,7 +48,13 @@ function(spdlog_prepare_test test_target spdlog_lib)
if(SPDLOG_SANITIZE_ADDRESS)
spdlog_enable_sanitizer(${test_target})
endif()
add_test(NAME ${test_target} COMMAND ${test_target})
add_test(NAME ${test_target} COMMAND ${test_target})
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
target_compile_definitions(${test_target} PRIVATE _FILE_OFFSET_BITS=64)
endif()
endif()
endfunction()
# The compiled library tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment