cmake_modules/platform.cmake
changeset 9210 31fedd5ef878
parent 9151 1d2df388fcc6
child 9211 6235925d0fa1
equal deleted inserted replaced
9209:2c1e00a764bd 9210:31fedd5ef878
    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)