jrl-umi3218 / jrl-cmakemodules

CMake utility toolbox
https://jrl-cmakemodules.readthedocs.io/en/master/
Other
59 stars 47 forks source link

-DBUILD_TESTING=OFF does not prevent compilation of tests #476

Open florent-lamiraux opened 3 years ago

florent-lamiraux commented 3 years ago

In several packages (hpp-constraints, hpp-core) adding -DBUILD_TESTING=OFF does not prevent compilation of the tests defined by macro ADD_UNIT_TEST.

I checked the CMakeCache.txt file and found the following line: BUILD_TESTING:BOOL=OFF

Did I miss something ?

jcarpent commented 3 years ago

Which command do you execute for compiling your project? On Pinocchio, this is totally working fine: did you try to erase the CMakeCache.txt?