Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake error related to deprecated CACHE variables #2556

Closed
traversaro opened this issue Apr 22, 2021 · 1 comment
Closed

CMake error related to deprecated CACHE variables #2556

traversaro opened this issue Apr 22, 2021 · 1 comment
Assignees
Labels
Component: CMake Component: Port Monitors Fixed in: YARP v3.5.0 Issue Type: Bug Involves some intervention from a system administrator Resolution: Fixed Type: Regression This is related to something that worked in a previous version

Comments

@traversaro
Copy link
Member

Describe the bug
Since, if I set an option variable that is deprecated, I get this error:

2021-04-22T10:57:49.2192480Z --  [ ]   Plugin: yarppm_depthimage_compression_zlib (ENABLE_yarppm_depthimage_compression_zlib)
2021-04-22T10:57:49.2193459Z CMake Deprecation Warning at cmake/YarpRenamedOption.cmake:10 (message):
2021-04-22T10:57:49.2194263Z   "ENABLE_yarpcar_depthimage" is deprecated in favour of
2021-04-22T10:57:49.2194940Z   "ENABLE_yarppm_depthimage_to_mono".  Updating new cache entry.
2021-04-22T10:57:49.2195514Z Call Stack (most recent call first):
2021-04-22T10:57:49.2196190Z   src/portmonitors/depthimage_to_mono/CMakeLists.txt:7 (yarp_renamed_option)
2021-04-22T10:57:49.2196754Z 
2021-04-22T10:57:49.2196937Z 
2021-04-22T10:57:49.2197519Z CMake Error at cmake/YarpRenamedOption.cmake:11 (set_property):
2021-04-22T10:57:49.2198237Z   set_property could not find CACHE variable
2021-04-22T10:57:49.2198883Z   ENABLE_yarppm_depthimage_to_mono.  Perhaps it has not yet been created.
2021-04-22T10:57:49.2199500Z Call Stack (most recent call first):
2021-04-22T10:57:49.2200165Z   src/portmonitors/depthimage_to_mono/CMakeLists.txt:7 (yarp_renamed_option)
2021-04-22T10:57:49.2200653Z 
2021-04-22T10:57:49.2200848Z 
2021-04-22T10:57:49.2201542Z --  [ ]   Plugin: yarppm_depthimage_to_mono (ENABLE_yarppm_depthimage_to_mono)
2021-04-22T10:57:49.2202424Z CMake Deprecation Warning at cmake/YarpRenamedOption.cmake:10 (message):
2021-04-22T10:57:49.2203235Z   "ENABLE_yarpcar_depthimage2" is deprecated in favour of
2021-04-22T10:57:49.2203921Z   "ENABLE_yarppm_depthimage_to_rgb".  Updating new cache entry.
2021-04-22T10:57:49.2204506Z Call Stack (most recent call first):
2021-04-22T10:57:49.2205170Z   src/portmonitors/depthimage_to_rgb/CMakeLists.txt:7 (yarp_renamed_option)
2021-04-22T10:57:49.2205655Z 
2021-04-22T10:57:49.2246298Z 
2021-04-22T10:57:49.2246936Z CMake Error at cmake/YarpRenamedOption.cmake:11 (set_property):
2021-04-22T10:57:49.2247783Z   set_property could not find CACHE variable ENABLE_yarppm_depthimage_to_rgb.
2021-04-22T10:57:49.2248428Z   Perhaps it has not yet been created.
2021-04-22T10:57:49.2248935Z Call Stack (most recent call first):
2021-04-22T10:57:49.2249596Z   src/portmonitors/depthimage_to_rgb/CMakeLists.txt:7 (yarp_renamed_option)
2021-04-22T10:57:49.2250085Z 
2021-04-22T10:57:49.2250282Z 
2021-04-22T10:57:49.2251202Z --  [ ]   Plugin: yarppm_depthimage_to_rgb (ENABLE_yarppm_depthimage_to_rgb)

To Reproduce
Compile YARP master branchg setting the ENABLE_yarpcar_depthimage2 CMake option.

Expected behavior
YARP should configure correctly.

Configuration (please complete the following information):

  • OS: N.A.
  • yarp version: current master
  • compiler: N.A.

Additional context
Example of failed build https://github.com/robotology/robotology-superbuild/runs/2409362407 .

@drdanz
Copy link
Member

drdanz commented Apr 23, 2021

@traversaro It should be fixed now, thanks for reporting this.

@drdanz drdanz self-assigned this Apr 23, 2021
@drdanz drdanz added Component: CMake Component: Port Monitors Fixed in: YARP v3.5.0 Issue Type: Bug Involves some intervention from a system administrator Resolution: Fixed Type: Regression This is related to something that worked in a previous version labels Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CMake Component: Port Monitors Fixed in: YARP v3.5.0 Issue Type: Bug Involves some intervention from a system administrator Resolution: Fixed Type: Regression This is related to something that worked in a previous version
Projects
None yet
Development

No branches or pull requests

2 participants