From f7aa20515c7d5385f9842388008ea04790b0073d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 22 Aug 2016 13:25:58 +0200 Subject: cmake: define MINGW_HAS_SECURE_API --- cmake/opentrack-platform.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/opentrack-platform.cmake') diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index be7cbfa5..19776323 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -65,3 +65,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS) endif() + +if(MINGW) + add_definitions(-DMINGW_HAS_SECURE_API) +endif() -- cgit v1.2.3