From dab7eee4adb35e008698585173dc45e43bfc3b2b Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sun, 2 Jan 2022 20:21:26 +0100 Subject: [PATCH] Detect Linux correclty in `CMakeLists.txt` --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14adc43b9..a157de726 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,10 +251,9 @@ if (WIN32) ENABLE_DLL_EXPORT=1 ) target_compile_options(${CORE_WIDGETS_ADDON} PRIVATE "/MP") - endif() -if (LINUX) +if (UNIX AND NOT APPLE) # Set the RPATH in the binary to a relative one to allow it to find our Qt # libraries regardless of where the base installation directory is. file(RELATIVE_PATH QT_LIBRARY_REL_PATH "${CMAKE_BINARY_DIR}/Release" "${QT_CMAKE_HOME_DIR}/../..")