Skip to content
Snippets Groups Projects
Commit 69f778ef authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

CMake: more policies

parent 3b54b8d0
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
############################################################################ ############################################################################
cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR) cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
project(BornAgain) project(BornAgain)
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
# CMakeLists.txt file for building gtest library # CMakeLists.txt file for building gtest library
############################################################################ ############################################################################
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
if(MSVC) if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_VARIADIC_MAX=10") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_VARIADIC_MAX=10")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment