Update cmake_minimum_required VERSION (#2457)
When tests are built, the minimum required cmake version is 3.4. The file test/CMakeLists.txt uses cmake_policy(SET CMP0064 NEW), which requires cmake 3.4 [1]. [1] https://cmake.org/cmake/help/v3.4/policy/CMP0064.html
This commit is contained in:
parent
ab2e87191f
commit
ad8bedebd7
|
@ -1,5 +1,6 @@
|
|||
if (BUILD_TESTS)
|
||||
|
||||
cmake_minimum_required(VERSION 3.4) # cmake_policy(SET CMP0064 NEW)
|
||||
cmake_policy(SET CMP0064 NEW)
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
|
||||
|
|
Loading…
Reference in New Issue