commit 6294e35f20351c7f58cc442cfdce8eedb0774000
parent 75521edc705a13b0722388547498691017c10522
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Dec 2018 15:11:02 +0100
Set the CMake required version to 3.11 with MSVC
On MSVC, the Boost random library is used rather than the C++11 standard
library that is actually bugged. However, the naming convention of Boost
1.66 and above are not correctly handled by previous cmake versions.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -52,6 +52,9 @@ include(rcmake)
include(rcmake_runtime)
if(MSVC)
+ # CMake 3.11 is required to handle the naming rule of the boost 1.67 libs
+ cmake_minimum_required(VERSION 3.11)
+
# Currently, the C++11 random library on MSVC is bugged and consequently we
# use the Boost library instead
find_package(Boost 1.67 REQUIRED COMPONENTS random)