Disabled RPATH and runtime loading of distributed Qt binaries for debug builds
This commit is contained in:
@@ -26,12 +26,19 @@ find_package(Qt5Xml)
|
||||
find_package(Qt5Svg)
|
||||
find_package(Qt5UiTools)
|
||||
|
||||
# CMAKE_SKIP_BUILD_RPATH needs to be set to true to use Gammaray during development
|
||||
set(CMAKE_SKIP_BUILD_RPATH false)
|
||||
set(CMAKE_BUILD_RPATH_USE_ORIGIN true)
|
||||
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
|
||||
set(CMAKE_BUILD_RPATH ${CMAKE_INSTALL_RPATH})
|
||||
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
add_compile_definitions(BLOOM_DEBUG_BUILD)
|
||||
|
||||
# CMAKE_SKIP_BUILD_RPATH needs to be set to true to use Gammaray during development.
|
||||
# This is because the distributed Qt binaries may not be compatible with the local installation of Gammaray
|
||||
set(CMAKE_SKIP_BUILD_RPATH true)
|
||||
endif()
|
||||
|
||||
add_executable(Bloom
|
||||
src/main.cpp
|
||||
src/Generated/resources.cpp
|
||||
@@ -159,10 +166,6 @@ target_link_options(
|
||||
PUBLIC [=[-Wl,--disable-new-dtags]=] #,--verbose
|
||||
)
|
||||
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
add_compile_definitions(BLOOM_DEBUG_BUILD)
|
||||
endif()
|
||||
|
||||
if (${ENABLE_SANITIZERS})
|
||||
message(WARNING "Sanitizers have been enabled")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user