summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-22 13:25:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commitf7aa20515c7d5385f9842388008ea04790b0073d (patch)
tree570837612adebd2770e28bf9d698a60ec4f9be70 /cmake
parent7a1c13fae65cb8d19201f231ff190c69367d7968 (diff)
cmake: define MINGW_HAS_SECURE_API
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake4
1 files changed, 4 insertions, 0 deletions
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()