Skip to content

Commit

Permalink
[CMake] Added CMAKE_POSITION_INDEPENDENT_CODE ON to qt relevant builds (
Browse files Browse the repository at this point in the history
  • Loading branch information
Peguen authored Apr 26, 2024
1 parent 5e99ac6 commit 28279a6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/mon/mon_plugins/monitor_tree_view/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project(MonitorTreeView)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Legacy Qt5 (pre 5.15) support as suggested by teh Qt Documentation:
# https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets)
Expand Down
2 changes: 2 additions & 0 deletions lib/CustomQt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project(CustomQt)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Legacy Qt5 (pre 5.15) support as suggested by teh Qt Documentation:
# https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets)
Expand Down
2 changes: 2 additions & 0 deletions lib/CustomTclap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project(CustomTclap)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(tclap REQUIRED)

set(include_files
Expand Down
2 changes: 2 additions & 0 deletions lib/QEcalParser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project(QEcalParser)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Legacy Qt5 (pre 5.15) support as suggested by teh Qt Documentation:
# https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets)
Expand Down
2 changes: 2 additions & 0 deletions lib/ThreadingUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project(ThreadingUtils)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(Threads REQUIRED)

set (threading_utils_includes
Expand Down
2 changes: 2 additions & 0 deletions lib/ecal_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# ========================= eCAL LICENSE =================================
project(ecal-utils)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(Threads REQUIRED)

set (ecal_utils_includes
Expand Down
2 changes: 2 additions & 0 deletions thirdparty/qwt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ endif()

project(qwt VERSION 6.2.0)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Legacy Qt5 (pre 5.15) support as suggested by teh Qt Documentation:
# https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets OpenGL Svg Concurrent PrintSupport)
Expand Down

0 comments on commit 28279a6

Please sign in to comment.