Dependee "DependInfo.cmake" is newer than depender "depend.internal".

classic Classic list List threaded Threaded
1 message Options
hex
Reply | Threaded
Open this post in threaded view
|

Dependee "DependInfo.cmake" is newer than depender "depend.internal".

hex

hello community,

During compilation, cmake shows the information message

    Dependee "DependInfo.cmake" is newer than depender "depend.internal".

to explain why a file needs to be recompiled.

imediately after

    -- Build files have been written to: ./build
    /usr/bin/cmake -H. -B./build --check-build-system CMakeFiles/Makefile.cmake 0
    /usr/bin/cmake -E cmake_progress_start ./build/CMakeFiles ./build/CMakeFiles/progress.marks


Can this be optimized?

Which files do I have to look at? There is a file "build/CMakeFiles/Makefile.cmake" which sets dependency order:

# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")

# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
  "CMakeCache.txt"
  "utils.cmake"
  "../CMakeLists.txt"
  "../Toolchains/tc.cmake"
  "CMakeFiles/3.5.1/CMakeCCompiler.cmake"
  "CMakeFiles/3.5.1/CMakeCXXCompiler.cmake"
  "CMakeFiles/3.5.1/CMakeSystem.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeCCompiler.cmake.in"
  "/usr/share/cmake-3.5/Modules/CMakeCInformation.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeCXXCompiler.cmake.in"
  "/usr/share/cmake-3.5/Modules/CMakeCXXInformation.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeCommonLanguageInclude.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeDetermineCCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeDetermineCXXCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeDetermineCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeFindBinUtils.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeForceCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeGenericSystem.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeLanguageInformation.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeSystem.cmake.in"
  "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInformation.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeSystemSpecificInitialize.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake"
  "/usr/share/cmake-3.5/Modules/CMakeUnixFindMake.cmake"
  "/usr/share/cmake-3.5/Modules/Compiler/GNU-C.cmake"
  "/usr/share/cmake-3.5/Modules/Compiler/GNU-CXX.cmake"
  "/usr/share/cmake-3.5/Modules/Compiler/GNU.cmake"
  "/usr/share/cmake-3.5/Modules/MultiArchCross.cmake"
  "/usr/share/cmake-3.5/Modules/Platform/Generic.cmake"
  )

# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
  "Makefile"
  "CMakeFiles/cmake.check_cache"
  )

# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
  "CMakeFiles/3.5.1/CMakeSystem.cmake"
  "CMakeFiles/3.5.1/CMakeCCompiler.cmake"
  "CMakeFiles/3.5.1/CMakeCXXCompiler.cmake"
  "CMakeFiles/CMakeDirectoryInformation.cmake"
  )

# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
  "CMakeFiles/hello-world.dir/DependInfo.cmake"
  )



Also, after this build step:

    make -f CMakeFiles/Makefile2 all
    make[1]: Entering directory './build'
    make -f CMakeFiles/hello-world.dir/build.make CMakeFiles/hello-world.dir/depend
    make[2]: Entering directory './build'

it sais:

    -E cmake_depends "Unix Makefiles" ./ ./ ./build ./build ./build/CMakeFiles/hello-world.dir/DependInfo.cmake --color=

why are the folders "./" and "./build" appearing twice?

this is my build command:

    cmake -DCMAKE_TOOLCHAIN_FILE=Toolchains/tc.cmake -DCMAKE_BUILD_TYPE=Debug


thank you
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake