Do not warn for VCExpress build
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 28 Dec 2011 18:07:22 +0000 (18:07 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 28 Dec 2011 18:07:22 +0000 (18:07 +0000)
CMake/OpenJPEGCPack.cmake

index e3cc5f4c5559ebf8ae90655254dfe4e65aa1a2ad..0e535e5e2f86115a1fc50f405599bce9fd46b864 100644 (file)
@@ -3,6 +3,9 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
   if(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
     set(CMAKE_INSTALL_MFC_LIBRARIES 0)
     set(CMAKE_INSTALL_DEBUG_LIBRARIES 0)
+    if(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
+      set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+    endif()
     include(${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake)
   endif(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")