Skip to content

Commit

Permalink
Merge pull request #141 from ZedThree/cmake-optional-uninstall
Browse files Browse the repository at this point in the history
CMake: Don't add uninstall target and CPack config if not top-level
  • Loading branch information
WardF authored Jan 10, 2025
2 parents 6fc5213 + bc61149 commit 8455a69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
##################################

#Minimum required CMake Version
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.21.0)

#Project Name
PROJECT(NCXX C CXX)
Expand Down Expand Up @@ -687,4 +687,6 @@ ENDIF()
##
# CPack, CMakeInstallation.cmake file.
##
INCLUDE(CMakeInstallation.cmake)
if (PROJECT_IS_TOP_LEVEL)
include(CMakeInstallation.cmake)
endif()

0 comments on commit 8455a69

Please sign in to comment.