[cmake-developers] CMake 3.1 regression with incremental builds ?
Clinton Stimpson
clinton at elemtech.com
Thu Nov 6 17:23:27 EST 2014
Using the netcdf project
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.2.tar.gz
I see a problem with incremental builds doing a relink of libraries. Within
my project, this leads to unnecessarily relinking of many executables every
time I run cmake.
For example:
tar zxf netcdf-4.3.2.tar.gz
cd netcdf-4.3.2
mkdir build
cd build
cmake ../
git init .
git add .
git commit -m"init"
cmake ../
git diff
These files have modifications in them which will lead to relinking.
liblib/CMakeFiles/netcdf.dir/build.make
liblib/CMakeFiles/netcdf.dir/link.txt
I see object files listed in a random order. Perhaps there is a std::set used
somewhere in CMake or something.
I do not see this behavior with CMake 3.0.2.
Clint
More information about the cmake-developers
mailing list