Skip to content

Commit

Permalink
Add CMake version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 15, 2024
1 parent 7a12209 commit 9560110
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmake/apple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ add_custom_target(appdmg
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/appdmg.json"
COMMENT "Generating DMG")

if(CMAKE_VERSION VERSION_LESS "3.19")
message(WARNING "DMG creation requires at least CMake 3.19")
endif()
6 changes: 5 additions & 1 deletion cmake/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ else()
set(CPACK_TARGET_ARCH unknown PARENT_SCOPE)
endif()

set(CPACK_PRE_BUILD_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/CPackAppImage.cmake" PARENT_SCOPE)
set(CPACK_PRE_BUILD_SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/CPackAppImage.cmake" PARENT_SCOPE)

if(CMAKE_VERSION VERSION_LESS "3.19")
message(WARNING "DMG creation requires at least CMake 3.19")
endif()

0 comments on commit 9560110

Please sign in to comment.