|
|
@ -206,6 +206,13 @@ endif() |
|
|
|
|
|
|
|
|
|
|
|
if(MINGW) |
|
|
|
if(MINGW) |
|
|
|
set_source_files_properties(${tests_files} PROPERTIES COMPILE_FLAGS "-Wno-narrowing") |
|
|
|
set_source_files_properties(${tests_files} PROPERTIES COMPILE_FLAGS "-Wno-narrowing") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# required for tests on MinGW Win64 |
|
|
|
|
|
|
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8) |
|
|
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,16777216") |
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
add_executable(tests ${tests_files} ${common_test_files} ${tests_proto_files} ${lite_test_proto_files}) |
|
|
|
add_executable(tests ${tests_files} ${common_test_files} ${tests_proto_files} ${lite_test_proto_files}) |
|
|
|