Skip to content

Commit

Permalink
Merge pull request #1546 from robotology/fixmacpythondetect
Browse files Browse the repository at this point in the history
CMake: Specify enabled languages in project instead of calling enable_language
  • Loading branch information
traversaro authored Nov 27, 2023
2 parents dc3c485 + 7a200bb commit 6e06e75
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT

cmake_minimum_required(VERSION 3.12)
project(robotology-superbuild NONE)

## we have to enable C because it is currently used
## by CMake to describe packages (in Config*.cmake files)
enable_language(C)

## FindACE requires CXX
enable_language(CXX)
## 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
# Not done on APPLE as a workaround for https://github.com/robotology/robotology-superbuild/issues/1510
if(NOT APPLE)
if(POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()
if(POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()

# Disable in source build
Expand Down

0 comments on commit 6e06e75

Please sign in to comment.