summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2012-10-29 16:40:19 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2012-10-29 16:40:19 -0400
commite88d2c20310eb586703e320bdb4800c4685f642f (patch)
treeaa2ca9d4216ca34c540322384299f47bf074336a /CMakeLists.txt
parent20e46850574df4e06c042084509fe2486ddab2b4 (diff)
Make it so CMake doesn't complain if packing on a system using Visual Studio Express.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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")