Am Montag, 18. März 2019, 14:45:15 CET schrieb Brad King: > On 3/15/19 6:10 PM, Rolf Eike Beer wrote: > > I suspected it was a policy thing, so I tried this: > > > > foreach(_p RANGE 21 54) > > > > cmake_policy(SET CMP00${_p} OLD) > > > > endforeach() > > Only policies 51-54 were added between 3.0 and 3.1. I suggest > testing with > > cmake_minimum_required(VERSION 3.0) > cmake_policy(SET CMP0051 NEW) > cmake_policy(SET CMP0052 NEW) > cmake_policy(SET CMP0053 NEW) > cmake_policy(SET CMP0054 NEW) > > and then trying different combinations. My guess is CMP0054.
It has nothing to do with either the policies or the order of cmake_minimum_required() and project(). If I require version 3.0 it works, with 3.1 it fails. Eike
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers