equal
deleted
inserted
replaced
71 #set deployment target |
71 #set deployment target |
72 list(APPEND pascal_flags "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}") |
72 list(APPEND pascal_flags "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}") |
73 |
73 |
74 endif(APPLE) |
74 endif(APPLE) |
75 |
75 |
76 if(WINDOWS) |
76 if(MINGW) |
77 #this flags prevents a few dll hell problems |
77 #this flags prevents a few dll hell problems |
78 set(CMAKE_C_FLAGS "-static-libgcc ${CMAKE_C_FLAGS}") |
78 set(CMAKE_C_FLAGS "-static-libgcc ${CMAKE_C_FLAGS}") |
79 endif(WINDOWS) |
79 endif(MINGW) |
80 |
80 |
|
81 if(WIN32) |
|
82 if(NOT BUILD_SHARED_LIB) |
|
83 message(FATAL_ERROR "Static linking is not supported on Windows") |
|
84 endif() |
|
85 endif(WIN32) |