cmake: build with rpath's, they are removed on install

This allows to build and run tests (on Linux) linked against the shared library
This commit is contained in:
Anonymous Maarten
2022-11-30 23:39:54 +01:00
committed by Anonymous Maarten
parent 1dce3f9265
commit 14ffaba399

View File

@@ -1669,7 +1669,6 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
elseif(SOLARIS)
set(SDL_RLD_FLAGS "-R\${libdir}")
endif()
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(HAVE_RPATH TRUE)
endif()