]> git.saurik.com Git - apt.git/commitdiff
CMake: Document that the globs are expanded during CMake
authorJulian Andres Klode <jak@debian.org>
Tue, 17 Jan 2017 13:33:02 +0000 (14:33 +0100)
committerJulian Andres Klode <jak@debian.org>
Tue, 17 Jan 2017 13:33:02 +0000 (14:33 +0100)
This will avoid people from thinking that they have to do nothing
when they change the set of files.

Gbp-Dch: ignore

apt-inst/CMakeLists.txt
apt-pkg/CMakeLists.txt
apt-private/CMakeLists.txt
ftparchive/CMakeLists.txt
test/libapt/CMakeLists.txt

index f7578231a34db920b48bb6034170b5ec55d7d24f..31da115e432d12c7acab5664da4db2bea33be508 100644 (file)
@@ -6,7 +6,9 @@ set(MAJOR 2.0)
 set(MINOR 0)
 set(APT_INST_MAJOR ${MAJOR} PARENT_SCOPE)
 
-# Definition of the C++ files used to build the library
+# Definition of the C++ files used to build the library - note that this
+# is expanded at CMake time, so you have to rerun cmake if you add or remove
+# a file (you can just run cmake . in the build directory)
 file(GLOB_RECURSE library "*.cc")
 file(GLOB_RECURSE headers "*.h")
 
index c43e900280e15bd3e7cfe9cf4c469a758ab297ad..e3e078b81a1628e9cf8320197315fc85859b3086 100644 (file)
@@ -29,7 +29,9 @@ execute_process(COMMAND grep "^#define APT_PKG_RELEASE"
 message(STATUS "Building libapt-pkg ${MAJOR} (release ${MINOR})")
 set(APT_PKG_MAJOR ${MAJOR} PARENT_SCOPE) # exporting for methods/CMakeLists.txt
 
-# Definition of the C++ files used to build the library
+# Definition of the C++ files used to build the library - note that this
+# is expanded at CMake time, so you have to rerun cmake if you add or remove
+# a file (you can just run cmake . in the build directory)
 file(GLOB_RECURSE library "*.cc"  "${CMAKE_CURRENT_BINARY_DIR}/tagfile-keys.cc")
 file(GLOB_RECURSE headers "*.h")
 
index 6de9e028198674c9b0a0eac8345a57aba9c03ea0..5dda36c92b34056c517560025c0b3db67a49afb6 100644 (file)
@@ -2,7 +2,9 @@
 set(MAJOR 0.0)
 set(MINOR 0)
 
-# Definition of the C++ files used to build the library
+# Definition of the C++ files used to build the library - note that this
+# is expanded at CMake time, so you have to rerun cmake if you add or remove
+# a file (you can just run cmake . in the build directory)
 file(GLOB_RECURSE library "*.cc")
 file(GLOB_RECURSE headers "*.h")
 
index 799fd733531553487a4d1aaa00d1fa44c3fad3c8..bbd2848c15c088480a7dbcd9a1f23fba55d28d1f 100644 (file)
@@ -1,5 +1,7 @@
 include_directories(${BERKELEY_DB_INCLUDE_DIRS})
-# Create the executable tasks
+# Definition of the C++ files used to build the program - note that this
+# is expanded at CMake time, so you have to rerun cmake if you add or remove
+# a file (you can just run cmake . in the build directory)
 file(GLOB_RECURSE source "*.cc")
 add_executable(apt-ftparchive ${source})
 
index f7cd5b2f6e5a73619c6396c6c2ebc771a341c4cc..86c0b28b5d61d94e7b1c3c7c13a3efd80c6018ca 100644 (file)
@@ -22,6 +22,9 @@ if(NOT GTEST_FOUND AND EXISTS ${GTEST_ROOT})
 endif()
 
 if(GTEST_FOUND)
+   # Definition of the C++ files used to build the test binary - note that this
+   # is expanded at CMake time, so you have to rerun cmake if you add or remove
+   # a file (you can just run cmake . in the build directory)
    file(GLOB files gtest_runner.cc *-helpers.cc *_test.cc)
    add_executable(libapt_test ${files})
    target_include_directories(libapt_test PRIVATE ${GTEST_INCLUDE_DIRS})