Stop overwriting the ADDITIONAL_LIBS setting for CMake.

This commit is contained in:
luxsie 2015-04-08 23:04:01 +08:00 committed by Peter Tissen
parent 952098c00f
commit 080e42ec9f

View File

@ -44,8 +44,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
#on some Linux distros shm_unlink and similar functions are in librt only
set(ADDITIONAL_LIBS "rt")
set(ADDITIONAL_LIBS "X11")
set(ADDITIONAL_LIBS "rt" "X11")
elseif(UNIX)
#it seems like glibc includes the iconv functions we use but other libc
#implementations like the one on OSX don't seem implement them