Skip to content

Commit

Permalink
condition policy on cmake version being 3.28 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Jan 8, 2024
1 parent e570d3d commit 3e27ecc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/qt5sigil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# quiet Qt 5.15 deprecat4ed warnings for now as we must support Qt 5.12.X and even earlier
add_definitions(-DQT_NO_DEPRECATED_WARNINGS)

cmake_policy(SET CMP0153 OLD)
if (CMAKE_VERSION VERSION_GREATER "3.27.9")
cmake_policy(SET CMP0153 OLD)
endif()

if( UNIX AND NOT APPLE )
# Qt5 packages minimum version 5.9 for Linux
Expand Down
4 changes: 3 additions & 1 deletion src/qt6sigil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# add_definitions(-DQT_NO_DEPRECATED_WARNINGS)
add_definitions(-DQT_IMPLICIT_QCHAR_CONSTRUCTION)

cmake_policy(SET CMP0153 OLD)
if (CMAKE_VERSION VERSION_GREATER "3.27.9")
cmake_policy(SET CMP0153 OLD)
endif()

set(QT6_NEEDED 6.2)

Expand Down

0 comments on commit 3e27ecc

Please sign in to comment.