r15397 by craig - #9310: Avoid libdl linking on OpenBSD
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 4 00:15:28 CEST 2010
Author: craig
Date: Tue Aug 3 22:15:27 2010
New Revision: 15397
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15397
Log:
#9310: Avoid libdl linking on OpenBSD
Modified:
trunk/Scribus/scribus/CMakeLists.txt
Modified: trunk/Scribus/scribus/CMakeLists.txt
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15397&path=/trunk/Scribus/scribus/CMakeLists.txt
==============================================================================
--- trunk/Scribus/scribus/CMakeLists.txt (original)
+++ trunk/Scribus/scribus/CMakeLists.txt Tue Aug 3 22:15:27 2010
@@ -1001,9 +1001,10 @@
)
# required to resolve symbols from libdl when ld is called with --no-add-needed
-IF(UNIX)
+# #9310 for the OpenBSD addition
+IF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
TARGET_LINK_LIBRARIES(${EXE_NAME} dl)
-ENDIF(UNIX)
+ENDIF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
IF(WIN32)
TARGET_LINK_LIBRARIES(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
More information about the scribus-commit
mailing list