Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Oct 29, 2023
1 parent b3c137f commit fc3cded
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ enable_language(C)
enable_language(CXX)

## Set CMP0094 to NEW
if(POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif ()
# 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()
endif()

# Disable in source build
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
Expand Down

0 comments on commit fc3cded

Please sign in to comment.