Sha256: 41889bcf970ba15cbe990341174dfd8af271728692e7fa9197098d7754767c2f

Contents?: true

Size: 627 Bytes

Versions: 9

Compression:

Stored size: 627 Bytes

Contents

# Including this cmake script into your cmake project will cause visual studio
# to build your project against the static C runtime.

cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0054)
    cmake_policy(SET CMP0054 NEW)
endif()

if (MSVC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") 
   foreach(flag_var
         CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
         CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
      if(${flag_var} MATCHES "/MD")
         string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
      endif()
   endforeach(flag_var)
endif()

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.2.1 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.2.0 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.5 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.4 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.3 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.2 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.1 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
dlib-1.1.0 ext/dlib-19.4/dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake