Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't give gcc flags to MSVC
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 13:29:52 +0000 (15:29 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 13:29:52 +0000 (15:29 +0200)
CMakeLists.txt
tools/cmake/Flags.cmake

index 025cc9c..5794264 100644 (file)
@@ -249,8 +249,10 @@ include(${CMAKE_HOME_DIRECTORY}/tools/cmake/DefinePackages.cmake)
 include(${CMAKE_HOME_DIRECTORY}/tools/cmake/MaintainerMode.cmake)
 include(${CMAKE_HOME_DIRECTORY}/tools/cmake/UnitTesting.cmake)
 
-### Setup gcc flags
-include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Flags.cmake)
+### Setup gcc & clang flags
+if (NOT MSVC)
+  include(${CMAKE_HOME_DIRECTORY}/tools/cmake/Flags.cmake)
+endif()
 
 ### Make Libs
 if(NOT WIN32)
index 872fe65..638c322 100644 (file)
@@ -1,6 +1,8 @@
 ##
 ## This file is in charge of setting our paranoid flags with regard to warnings and optimization.
 ##
+##   It is only used for gcc and clang. MSVC builds don't load this file.
+##
 ##   These flags do break some classical CMake tests, so you don't
 ##   want to do so before the very end of the configuration.
 ##