diff options
Diffstat (limited to 'apt-pkg/CMakeLists.txt')
-rw-r--r-- | apt-pkg/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apt-pkg/CMakeLists.txt b/apt-pkg/CMakeLists.txt index 5c97493af..a40b041b8 100644 --- a/apt-pkg/CMakeLists.txt +++ b/apt-pkg/CMakeLists.txt @@ -2,7 +2,8 @@ include_directories(${PROJECT_BINARY_DIR}/include/apt-pkg) file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include/apt-pkg/) -execute_process(COMMAND ${TRIEHASH_EXECUTABLE} +execute_process(COMMAND grep -v "^#" "${CMAKE_CURRENT_SOURCE_DIR}/tagfile-keys.list" + COMMAND ${TRIEHASH_EXECUTABLE} --ignore-case --header ${PROJECT_BINARY_DIR}/include/apt-pkg/tagfile-keys.h --code ${CMAKE_CURRENT_BINARY_DIR}/tagfile-keys.cc @@ -10,8 +11,10 @@ execute_process(COMMAND ${TRIEHASH_EXECUTABLE} --enum-name pkgTagSection::Key --function-name pkgTagHash --include "<apt-pkg/tagfile.h>" - ${CMAKE_CURRENT_SOURCE_DIR}/tagfile-keys.list) + --include "<apt-pkg/header-is-private.h>" + /dev/stdin ) set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "tagfile-keys.list") +set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/tagfile-keys.cc" PROPERTIES COMPILE_DEFINITIONS APT_COMPILING_APT) # Set the version of the library |