Преглед изворни кода

CMake: Include CPackIFWConfigureFile normally

As minimum CMake version required to build CMake itself is set to 3.13,
including this module from the source directory isn't needed anymore,
as it was added in CMake 3.8. This also enables changing module code
as done in other modules - not dependent on CMake build system itself.
Peter Kokot пре 1 месец
родитељ
комит
7db6ff4863
2 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 1
      CMakeCPack.cmake
  2. 0 4
      Modules/CPackIFWConfigureFile.cmake

+ 1 - 1
CMakeCPack.cmake

@@ -52,7 +52,7 @@ if(NOT DEFINED CPACK_SYSTEM_NAME)
 endif()
 
 # Command for configure IFW script templates
-include(${CMake_SOURCE_DIR}/Modules/CPackIFWConfigureFile.cmake)
+include(CPackIFWConfigureFile)
 
 # Advanced IFW configuration
 set(_cpifwrc CPACK_IFW_COMPONENT_GROUP_CMAKE_)

+ 0 - 4
Modules/CPackIFWConfigureFile.cmake

@@ -36,10 +36,6 @@ The module defines the following commands:
 
 #]=======================================================================]
 
-# NOTE: This file used to himself packaging via CPack IFW generator and
-# should be compatible with minimal CMake version defined in
-# ../CMakeLists.txt file.
-
 if(NOT DEFINED CPackIFWConfigureFile_CMake_INCLUDED)
 set(CPackIFWConfigureFile_CMake_INCLUDED 1)