FunctionalPlus: Changing the header files does not trigger a rebuild of the unittests
Since #112 I encounter a new effect when changing the library and running the unittests.
My usual workflow looks like this:
initially:
rm -r build
mkdir build
cd build
cmake -DUNITTEST=ON ..
make unittest
later:
# change something in one of the header files
make unittest
With the old versions of CMakeLists.txt and test/CMakeLists.txt it still works, but with the new ones the second make unittest does not rebuild the tests. It just ignores the changes in the header files. I have to run sudo make install to rebuild the tests.
@offa and @theodelrieu Is this intended and my workflow is just strange? Or do you think it would be possible and helpful to change the cmake configuration to support this again?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 37 (34 by maintainers)
To make this issue complete, I just also tested on my third system (Lubuntu-vbox). After doing
sudo rm -r /usr/local/include/fplus/once the problem is gone here too.Sorry again and thanks for all the help. š
Exactly. š
Good idea to test it on travis. š I see there it works as inteded.
Just to make sure Iām not crazy, I just scripted the whole process, ran it in another vbox and captured the screencast.
Here it is: https://youtu.be/_LEtBfPWY9g The interesting part happens at 2:05.
Am I doing something embarrassing wrong?