diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b6b02e57..3ea3a439a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,16 +168,16 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") "_MBCS" "_SCL_SECURE_NO_WARNINGS" "_CRT_SECURE_NO_WARNINGS" - "HAVE_STRUCT_TIMESPEC" "_XKEYCHECK_H" ) endif() if(WIN32) if(MINGW OR MSYS) - add_definitions(-DWIN32 -D__MINGW32__) + add_definitions(-DWIN32 -D__MINGW32__ -DHAVE_STRUCT_TIMESPEC) endif() target_compile_definitions(abc_interface INTERFACE + $<$:HAVE_STRUCT_TIMESPEC> $<$:ABC_DLL=ABC_DLLEXPORT> $<$>:WIN32_NO_DLL> $<$>:ABC_NO_DYNAMIC_LINKING>