diff --git a/CMakeLists.txt b/CMakeLists.txt index 926ffaccd..255bb64e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) if(POLICY CMP0111) cmake_policy(SET CMP0111 NEW) diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt index 2d432bff4..d9d8a8d51 100644 --- a/examples/c/CMakeLists.txt +++ b/examples/c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_c_example) diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index 5ce9238b6..174b95d82 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_cpp_example) diff --git a/examples/cpp/lcm_log_writer/CMakeLists.txt b/examples/cpp/lcm_log_writer/CMakeLists.txt index 2d59ea959..069a22044 100644 --- a/examples/cpp/lcm_log_writer/CMakeLists.txt +++ b/examples/cpp/lcm_log_writer/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_log_writer) diff --git a/lcm-cmake/lcmUtilities.cmake b/lcm-cmake/lcmUtilities.cmake index be0803777..445bf566e 100644 --- a/lcm-cmake/lcmUtilities.cmake +++ b/lcm-cmake/lcmUtilities.cmake @@ -27,12 +27,7 @@ # lcm_install_python([DESTINATION ] # [...]) -if(WIN32) - # Need 'cmake -E env' - cmake_minimum_required(VERSION 3.1.0) -else() - cmake_minimum_required(VERSION 2.8.12) -endif() +cmake_minimum_required(VERSION 3.5.0) include(CMakeParseArguments) #------------------------------------------------------------------------------