Skip to content

Commit

Permalink
Merge pull request #3171 from randaz81/cxx_std_20
Browse files Browse the repository at this point in the history
target_compile_features updated from cxx_std_17 to cxx_std_20
  • Loading branch information
randaz81 authored Jan 30, 2025
2 parents 6970c20 + 2e5ce76 commit 12e7a0c
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/libYARP_companion/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ target_include_directories(YARP_companion
target_link_libraries(YARP_companion PUBLIC YARP::YARP_os)
list(APPEND YARP_companion_PUBLIC_DEPS YARP_os )

target_compile_features(YARP_companion PUBLIC cxx_std_17)
target_compile_features(YARP_companion PUBLIC cxx_std_20)

if(YARP_HAS_ACE)
target_compile_definitions(YARP_companion PRIVATE YARP_HAS_ACE)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_conf/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ target_include_directories(YARP_conf
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_conf INTERFACE cxx_std_17)
target_compile_features(YARP_conf INTERFACE cxx_std_20)


#########################################################################
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_cv/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ target_include_directories(YARP_cv
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_conf INTERFACE cxx_std_17)
target_compile_features(YARP_conf INTERFACE cxx_std_20)

target_link_libraries(YARP_cv INTERFACE YARP::YARP_sig)
list(APPEND YARP_cv_PUBLIC_DEPS YARP_sig)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_dataplayer/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if(MSVC)
target_include_directories(YARP_dataplayer SYSTEM PRIVATE ${dirent_INCLUDE_DIRS})
endif()

target_compile_features(YARP_dataplayer PUBLIC cxx_std_17)
target_compile_features(YARP_dataplayer PUBLIC cxx_std_20)

target_link_libraries(YARP_dataplayer
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_dev/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ target_include_directories(YARP_dev
$<BUILD_INTERFACE:${YARP_dev_idl_BUILD_INTERFACE_INCLUDE_DIRS}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_dev PUBLIC cxx_std_17)
target_compile_features(YARP_dev PUBLIC cxx_std_20)

target_link_libraries(YARP_dev
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_dev/src/yarp/dev/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ target_link_libraries (YARP_dev_tests
YARP::YARP_dev
YARP::YARP_catch2)

target_compile_features(YARP_dev_tests PRIVATE cxx_std_17)
target_compile_features(YARP_dev_tests PRIVATE cxx_std_20)

set_property (
TARGET YARP_dev_tests
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_eigen/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_include_directories(YARP_eigen
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_eigen INTERFACE cxx_std_17)
target_compile_features(YARP_eigen INTERFACE cxx_std_20)

target_link_libraries(YARP_eigen INTERFACE YARP_sig)
list(APPEND YARP_eigen_PUBLIC_DEPS YARP_sig)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_gsl/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_include_directories(YARP_gsl
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_gsl PUBLIC cxx_std_17)
target_compile_features(YARP_gsl PUBLIC cxx_std_20)

target_link_libraries(YARP_gsl PUBLIC YARP::YARP_sig)
list(APPEND YARP_gsl_PUBLIC_DEPS YARP_sig)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_init/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target_link_libraries(YARP_init
YARP::YARP_conf
YARP::YARP_os
)
target_compile_features(YARP_init PUBLIC cxx_std_17)
target_compile_features(YARP_init PUBLIC cxx_std_20)

if(YARP_LINK_PLUGINS)
if(YARP_COMPILE_CARRIER_PLUGINS)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_logger/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ target_include_directories(YARP_logger
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_logger PUBLIC cxx_std_17)
target_compile_features(YARP_logger PUBLIC cxx_std_20)

target_link_libraries(YARP_logger
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_manager/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ target_include_directories(YARP_manager
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_manager PUBLIC cxx_std_17)
target_compile_features(YARP_manager PUBLIC cxx_std_20)

target_link_libraries(YARP_manager
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_math/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ target_include_directories(YARP_math
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_math PUBLIC cxx_std_17)
target_compile_features(YARP_math PUBLIC cxx_std_20)

# import math symbols from standard cmath
target_compile_definitions(YARP_math PRIVATE _USE_MATH_DEFINES)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_name/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ target_include_directories(YARP_name
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_name PUBLIC cxx_std_17)
target_compile_features(YARP_name PUBLIC cxx_std_20)

target_link_libraries(YARP_name
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_os/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ target_include_directories(YARP_os
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_os PUBLIC cxx_std_17)
target_compile_features(YARP_os PUBLIC cxx_std_20)

target_link_libraries(YARP_os PUBLIC YARP::YARP_conf)
list(APPEND YARP_os_PUBLIC_DEPS YARP_conf)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_pcl/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ target_include_directories(YARP_pcl
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_pcl INTERFACE cxx_std_17)
target_compile_features(YARP_pcl INTERFACE cxx_std_20)

target_link_libraries(YARP_pcl INTERFACE YARP::YARP_sig)
list(APPEND YARP_pcl_PUBLIC_DEPS YARP_sig)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_profiler/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ target_include_directories(YARP_profiler
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_profiler PUBLIC cxx_std_17)
target_compile_features(YARP_profiler PUBLIC cxx_std_20)

target_link_libraries(YARP_profiler
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_robotinterface/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ target_include_directories(YARP_robotinterface
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_robotinterface PUBLIC cxx_std_17)
target_compile_features(YARP_robotinterface PUBLIC cxx_std_20)

target_link_libraries(YARP_robotinterface
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_robottestingframework/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_include_directories(YARP_robottestingframework
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_robottestingframework PUBLIC cxx_std_17)
target_compile_features(YARP_robottestingframework PUBLIC cxx_std_20)

target_link_libraries(YARP_robottestingframework
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_run/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ target_include_directories(YARP_run
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_run PUBLIC cxx_std_17)
target_compile_features(YARP_run PUBLIC cxx_std_20)

option(YARP_ENABLE_YARPRUN_LOG "Enable yarprun log file in temp dir" OFF)
mark_as_advanced(YARP_ENABLE_YARPRUN_LOG)
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_serversql/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ target_include_directories(YARP_serversql
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_compile_features(YARP_serversql PUBLIC cxx_std_17)
target_compile_features(YARP_serversql PUBLIC cxx_std_20)

target_link_libraries(YARP_serversql
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion src/libYARP_sig/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ target_include_directories(YARP_sig
$<BUILD_INTERFACE:${YARP_sig_idl_BUILD_INTERFACE_INCLUDE_DIRS}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(YARP_sig PUBLIC cxx_std_17)
target_compile_features(YARP_sig PUBLIC cxx_std_20)

target_link_libraries(YARP_sig
PUBLIC
Expand Down

0 comments on commit 12e7a0c

Please sign in to comment.