Closed traversaro closed 1 year ago
The problem is that the option ENABLE_FrameVisualizer
is defined after the related directory is added https://github.com/robotology/wearables/blob/56c3db149f073ef4ff54322a11c5f2bd7364cbed/CMakeLists.txt#L103 . Furthermore, it is not clear why the FrameVisualizer calls find_package(IWear)
if the IWear is created by the CMake project, as at the first run for sure it is not available.
The problem is that the option
ENABLE_FrameVisualizer
is defined after the related directory is added
This problem seems to apply to all the options defined in https://github.com/robotology/wearables/blob/b152236ea625f2dc930ccadca2e99ce1d4b06b73/CMakeLists.txt#L95-L110, am I right?
, am I right?
Yes
Describe the bug
If I run
cmake .
again in an already created built environment, the configuration fails with:To Reproduce
Expected behavior
The project should not fail at the second configuration.
Screenshots
N.a. .
Desktop (please complete the following information):