mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Modify install rpath only if BUILD_SHARED_LIBS is ON
This commit is contained in:
parent
fbc0f17198
commit
b81de898bf
@ -232,7 +232,7 @@ macro(sfml_add_example target)
|
||||
|
||||
set(target_install_dir ${SFML_MISC_INSTALL_PREFIX}/examples/${target})
|
||||
|
||||
if(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
||||
if(BUILD_SHARED_LIBS AND (SFML_OS_LINUX OR SFML_OS_FREEBSD))
|
||||
file(RELATIVE_PATH rel_lib_dir
|
||||
${CMAKE_INSTALL_PREFIX}/${target_install_dir}
|
||||
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
|
||||
|
Loading…
Reference in New Issue
Block a user