yarp
yarp copied to clipboard
DebugFull and Profile builds are no longer working
At some point this part of CMake code setting up DebugFull and Profile builds option stopped working properly:
https://github.com/robotology/yarp/blob/3930e07d8d6f912ca55eb6083147cd6728e6c948/cmake/YarpOptions.cmake#L22-L89
If you run cmake -DCMAKE_BUILD_TYPE=Profile, the CMAKE_C_FLAGS_PROFILE and CMAKE_CXX_FLAGS_PROFILE variables end up being empty (if you don't select it on the first CMake execution, the variables are set correctly though). Same for DebugFull. At some point (according to my tests starting with CMake 3.11) when passing CMAKE_BUILD_TYPE, this started initializing these variables to an empty value, therefore they are not overwritten by the set commands.
Also for some reason that I was not able to understand yet, on some builds the DebugFull and Profile configurations cannot be selected from ccmake. If I delete the CMAKE_BUILD_TYPE variable, they become available again.