From e88d2c20310eb586703e320bdb4800c4685f642f Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Mon, 29 Oct 2012 16:40:19 -0400 Subject: [PATCH] Make it so CMake doesn't complain if packing on a system using Visual Studio Express. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16ffa164a..502806c3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -516,6 +516,10 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") #set(CPACK_RESOURCE_FILE_README "${Anope_SOURCE_DIR}/docs/README") # The following is primarily for NSIS if(WIN32) + # By default, do not warn when built on machines using only VS Express: + IF(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS) + SET(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON) + ENDIF(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS) # Also for Windows, include installing the MSVCRT library include(InstallRequiredSystemLibraries) set(CPACK_GENERATOR "NSIS")