Skip to content

Commit

Permalink
Merge pull request #1512 from robotology/fix68
Browse files Browse the repository at this point in the history
Always use CMAKE_ARGS in place of CMAKE_CACHE_ARGS in Build<...>.cmake scripts
  • Loading branch information
traversaro authored Oct 30, 2023
2 parents 32787b7 + f525de1 commit 9543f5f
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
76 changes: 38 additions & 38 deletions cmake/BuildICUB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,44 +61,44 @@ ycm_ep_helper(ICUB TYPE GIT
COMPONENT iCub
FOLDER src
CMAKE_ARGS -DICUB_INSTALL_WITH_RPATH:BOOL=ON
CMAKE_CACHE_ARGS -DENABLE_icubmod_cartesiancontrollerserver:BOOL=ON
-DENABLE_icubmod_cartesiancontrollerclient:sBOOL=ON
-DENABLE_icubmod_gazecontrollerclient:BOOL=ON
-DENABLE_icubmod_serial:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_serialport:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_skinWrapper:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_dragonfly2:BOOL=${ENABLE_DRAGONFLY2}
-DENABLE_icubmod_portaudio:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_sharedcan:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_bcbBattery:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canmotioncontrol:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusInertialMTB:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusSkin:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusFtSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusVirtualAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_cfw2can:BOOL=${ROBOTOLOGY_USES_CFW2CAN}
-DENABLE_icubmod_ecan:BOOL=${ROBOTOLOGY_USES_ESDCAN}
-DENABLE_icubmod_embObjBattery:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjFTsensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMultipleFTsensors:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjIMU:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjInertials:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMais:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMotionControl:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjSkin:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjVirtualAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_parametricCalibrator:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_parametricCalibratorEth:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjPOS:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_xsensmtx:BOOL=${ENABLE_icubmod_xsensmtx}
-DENABLE_icubmod_socketcan:BOOL=${ENABLE_icubmod_socketcan}
-DICUB_USE_icub_firmware_shared:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DICUBMAIN_COMPILE_SIMULATORS:BOOL=${ICUBMAIN_COMPILE_SIMULATORS}
-DICUB_COMPILE_BINDINGS:BOOL=${ICUB_COMPILE_BINDINGS}
-DCREATE_PYTHON:BOOL=${ROBOTOLOGY_USES_PYTHON}
-DCREATE_LUA:BOOL=${ROBOTOLOGY_USES_LUA}
${ICUB_PYTHON_INSTALL_CMAKE_ARGS})
-DENABLE_icubmod_cartesiancontrollerserver:BOOL=ON
-DENABLE_icubmod_cartesiancontrollerclient:sBOOL=ON
-DENABLE_icubmod_gazecontrollerclient:BOOL=ON
-DENABLE_icubmod_serial:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_serialport:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_skinWrapper:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_dragonfly2:BOOL=${ENABLE_DRAGONFLY2}
-DENABLE_icubmod_portaudio:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_sharedcan:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_bcbBattery:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canmotioncontrol:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusInertialMTB:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusSkin:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusFtSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_canBusVirtualAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_cfw2can:BOOL=${ROBOTOLOGY_USES_CFW2CAN}
-DENABLE_icubmod_ecan:BOOL=${ROBOTOLOGY_USES_ESDCAN}
-DENABLE_icubmod_embObjBattery:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjFTsensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMultipleFTsensors:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjIMU:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjInertials:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMais:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjMotionControl:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjSkin:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjVirtualAnalogSensor:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_parametricCalibrator:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_parametricCalibratorEth:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_embObjPOS:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DENABLE_icubmod_xsensmtx:BOOL=${ENABLE_icubmod_xsensmtx}
-DENABLE_icubmod_socketcan:BOOL=${ENABLE_icubmod_socketcan}
-DICUB_USE_icub_firmware_shared:BOOL=${ROBOTOLOGY_ENABLE_ICUB_HEAD}
-DICUBMAIN_COMPILE_SIMULATORS:BOOL=${ICUBMAIN_COMPILE_SIMULATORS}
-DICUB_COMPILE_BINDINGS:BOOL=${ICUB_COMPILE_BINDINGS}
-DCREATE_PYTHON:BOOL=${ROBOTOLOGY_USES_PYTHON}
-DCREATE_LUA:BOOL=${ROBOTOLOGY_USES_LUA}
${ICUB_PYTHON_INSTALL_CMAKE_ARGS})

set(ICUB_CONDA_DEPENDENCIES ace libopencv gsl ipopt libode qt-main sdl)

Expand Down
2 changes: 1 addition & 1 deletion cmake/Buildblocktest-yarp-plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ ycm_ep_helper(blocktest-yarp-plugins TYPE GIT
FOLDER src
DEPENDS YARP
blocktestcore
CMAKE_CACHE_ARGS -DENABLE_MSVC_WARNINGS:BOOL=OFF)
CMAKE_ARGS -DENABLE_MSVC_WARNINGS:BOOL=OFF)

set(blocktest-yarp-plugins_CONDA_DEPENDENCIES boost-cpp)
2 changes: 1 addition & 1 deletion cmake/Buildblocktestcore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ycm_ep_helper(blocktestcore TYPE GIT
TAG master
COMPONENT core
FOLDER src
CMAKE_CACHE_ARGS -DENABLE_MSVC_WARNINGS:BOOL=OFF
CMAKE_ARGS -DENABLE_MSVC_WARNINGS:BOOL=OFF
DEPENDS YCM)

set(blocktestcore_CONDA_DEPENDENCIES qt-main boost-cpp)
2 changes: 1 addition & 1 deletion cmake/Buildspeech.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ ycm_ep_helper(speech TYPE GIT
ICUB
ICUBcontrib
COMPONENT ICUB_BASIC_DEMOS
CMAKE_CACHE_ARGS -DBUILD_SVOX_SPEECH:BOOL=ON
CMAKE_ARGS -DBUILD_SVOX_SPEECH:BOOL=ON
FOLDER src)
2 changes: 1 addition & 1 deletion cmake/Buildyarp-devices-forcetorque.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ ycm_ep_helper(yarp-devices-forcetorque TYPE GIT
COMPONENT iCub
FOLDER src
DEPENDS YARP
CMAKE_CACHE_ARGS -DENABLE_ftshoe:BOOL=ON)
CMAKE_ARGS -DENABLE_ftshoe:BOOL=ON)

0 comments on commit 9543f5f

Please sign in to comment.