]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove superfluous setting of CPACK_CMAKE_GENERATOR
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 30 Aug 2020 18:30:06 +0000 (20:30 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 30 Aug 2020 18:30:06 +0000 (20:30 +0200)
Set CMAKE_GENERATOR if a non-default generator is wanted.

cmake/CcachePackConfig.cmake

index de735b127ad8fd39d69602e64cbafe8ae1a32cf9..3f123af4b4b91253c9269c28757f6b781316ee28 100644 (file)
@@ -1,14 +1,6 @@
 # Note: This is part of CMakeLists.txt file, not to be confused with
 # CPackConfig.cmake.
 
-find_program(NINJA_EXE NAMES "ninja" DOC "Path to Ninja executable")
-mark_as_advanced(NINJA_EXE) # Don't show in CMake UIs
-if(NINJA_EXE)
-  set(CPACK_CMAKE_GENERATOR "Ninja")
-else()
-  set(CPACK_CMAKE_GENERATOR "Unix Makefiles")
-endif()
-
 if(${CMAKE_VERSION} VERSION_LESS "3.9")
   set(CPACK_PACKAGE_DESCRIPTION "${CMAKE_PROJECT_DESCRIPTION}")
 endif()