mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
first try to set RPATH correctly. Doesn't work for Qt
if Qt is setted with -DCMAKE_PREFIX_PATH= it doesn't work
This commit is contained in:
parent
23498ab24b
commit
c8c16f31c5
@ -25,6 +25,9 @@ set(INSTALL_LIB_DIR "lib/sdrangel")
|
||||
set(INSTALL_PLUGINS_DIR ${INSTALL_LIB_DIR}/plugins)
|
||||
set(INSTALL_PLUGINSSRV_DIR ${INSTALL_LIB_DIR}/pluginssrv)
|
||||
|
||||
set(CMAKE_MACOSX_RPATH 1)
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}")
|
||||
|
||||
# SDRAngel cmake options
|
||||
option(DEBUG_OUTPUT "Print debug messages" OFF)
|
||||
option(SANITIZE_ADDRESS "Activate memory address sanitization" OFF)
|
||||
@ -78,6 +81,7 @@ find_package(Qt5 COMPONENTS MultimediaWidgets REQUIRED)
|
||||
|
||||
# for the server we don't need OpenGL components
|
||||
if (BUILD_GUI)
|
||||
set(QT_USE_QTOPENGL TRUE)
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(Qt5 COMPONENTS OpenGL REQUIRED)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user