X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=6a2cf835bd2aaff58e860aba28e4211284fd0c4f;hp=dbafc334754cf0399d1fb350a75aca0a340b15a8;hb=e88bc2044ff3815bc62e3a297410c4aafe5880bb;hpb=b8017f7f0469e47a0e214ae573b08ffc346bd950 diff --git a/CMakeLists.txt b/CMakeLists.txt index dbafc334..6a2cf835 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,8 +79,10 @@ endif(WIN32) # Define a comma-separated list here # e.g. for pgsql, we need -DLINK_EXTRA=pq;crypt set(LINK_EXTRA "" CACHE STRING "Semicolon-separated list of libraries to be linked") -string(REPLACE "," ";" LINK_EXTRA ${LINK_EXTRA}) -link_libraries(${LINK_EXTRA}) +if(LINK_EXTRA) + string(REPLACE "," ";" LINK_EXTRA ${LINK_EXTRA}) + link_libraries(${LINK_EXTRA}) +endif(LINK_EXTRA) # Build Type # We need to make sure it's not empty