Browse code

fix for mingw

Nat! authored on 06/09/2017 11:45:49
Showing 1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 cmake_minimum_required (VERSION 3.0)
2 2
 
3
-project(mulle-concurrent C)
3
+project( mulle-concurrent C)
4 4
 
5
-cmake_policy(SET CMP0054 NEW)
5
+cmake_policy( SET CMP0054 NEW)
6 6
 
7 7
 set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/mulle-configuration/cmake)
8 8
 message(STATUS "CMAKE_MODULE_PATH is ${CMAKE_MODULE_PATH}")
... ...
@@ -47,6 +47,12 @@ message(STATUS "MULLE_ALLOCATOR_LIBRARY is ${MULLE_ALLOCATOR_LIBRARY}")
47 47
 message(STATUS "MULLE_TEST_ALLOCATOR_LIBRARY is ${MULLE_TEST_ALLOCATOR_LIBRARY}")
48 48
 message(STATUS "MULLE_THREAD_LIBRARY is ${MULLE_THREAD_LIBRARY}")
49 49
 
50
+
51
+if( MSVC)
52
+   add_definitions( -DMULLE_ALLOCATOR_EXTERN_GLOBAL=extern)
53
+endif()
54
+
55
+
50 56
 set( DEPENDENCY_LIBRARIES
51 57
 ${MULLE_ABA_LIBRARY}
52 58
 ${MULLE_ALLOCATOR_LIBRARY}