From 5642d47ae489f2eb362cece2464ecc466a700ed5 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 1 Sep 2022 11:57:59 -0400
Subject: [PATCH] cmake: remove blank INSTALL_NAME_DIR property on Apple
targets.
It apparently didn't fix the thing it was trying to fix, and it's causing
other problems.
Fixes #194.
---
CMakeLists.txt | 1 -
1 file changed, 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70cdb5a3..aa40e361 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,7 +74,6 @@ if(UNIX AND NOT APPLE)
target_link_libraries(SDL PRIVATE ${CMAKE_DL_LIBS})
endif()
if(APPLE)
- set_target_properties(SDL PROPERTIES INSTALL_NAME_DIR "")
set_target_properties(SDL PROPERTIES COMPILE_DEFINITIONS "_THREAD_SAFE")
set_target_properties(SDL PROPERTIES LINK_FLAGS
"-Wl,-compatibility_version,${DYLIB_COMPAT_VERSION} -Wl,-current_version,${DYLIB_CURRENT_VERSION}")