-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1552 from robotology/traversaro-patch-7
Set policy_max in cmake_minimum_required to 3.27
- Loading branch information
Showing
1 changed file
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,12 @@ | |
# Authors: Silvio Traversaro <[email protected]> | ||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||
|
||
cmake_minimum_required(VERSION 3.12) | ||
|
||
cmake_minimum_required(VERSION 3.12...3.27) | ||
|
||
## We can't specify LANGUAGES NONE as have to enable C because it is currently used | ||
## by CMake to describe packages (in Config*.cmake files) and FindACE requires CXX | ||
project(robotology-superbuild LANGUAGES C CXX) | ||
|
||
## Set CMP0094 to NEW | ||
if(POLICY CMP0094) | ||
cmake_policy(SET CMP0094 NEW) | ||
endif() | ||
|
||
# Disable in source build | ||
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") | ||
message(FATAL_ERROR "In-source builds of robotology-superbuild are not allowed. " | ||
|