Skip to content

Commit

Permalink
update macro
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 committed May 18, 2024
1 parent 5859791 commit 7e7252e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rviz_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ if(MSVC)
set(QT_VERSION_MAJOR 5)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
function(qt_wrap_cpp out)
qt5_wrap_cpp(_sources ${ARGN})
set("${out}" ${_sources} PARENT_SCOPE)
qt5_wrap_cpp("${out}" ${ARGN})
set("${out}" "${${out}}" PARENT_SCOPE)
endfunction()
else()
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
Expand Down
4 changes: 2 additions & 2 deletions rviz_default_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ if(MSVC)
set(QT_VERSION_MAJOR 5)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test Widgets)
function(qt_wrap_cpp out)
qt5_wrap_cpp(_sources ${ARGN})
set("${out}" ${_sources} PARENT_SCOPE)
qt5_wrap_cpp("${out}" ${ARGN})
set("${out}" "${${out}}" PARENT_SCOPE)
endfunction()
else()
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Test Widgets)
Expand Down
4 changes: 2 additions & 2 deletions rviz_rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ if(MSVC)
set(QT_VERSION_MAJOR 5)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
function(qt_wrap_cpp out)
qt5_wrap_cpp(_sources ${ARGN})
set("${out}" ${_sources} PARENT_SCOPE)
qt5_wrap_cpp("${out}" ${ARGN})
set("${out}" "${${out}}" PARENT_SCOPE)
endfunction()
else()
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
Expand Down
4 changes: 2 additions & 2 deletions rviz_rendering_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ if(BUILD_TESTING)
set(QT_VERSION_MAJOR 5)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
function(qt_wrap_cpp out)
qt5_wrap_cpp(_sources ${ARGN})
set("${out}" ${_sources} PARENT_SCOPE)
qt5_wrap_cpp("${out}" ${ARGN})
set("${out}" "${${out}}" PARENT_SCOPE)
endfunction()
else()
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
Expand Down

0 comments on commit 7e7252e

Please sign in to comment.