aboutsummaryrefslogtreecommitdiff
path: root/devel/automoc4/files/patch-CMakeLists.txt
blob: 0bd3837b271bdfc4e8a7d1a681b47248b977fcca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- CMakeLists.txt.orig	Sun Dec 25 15:35:23 2011
+++ CMakeLists.txt	Sun Dec 25 15:35:40 2011
@@ -21,7 +21,9 @@
 set_target_properties(automoc4  PROPERTIES  SKIP_BUILD_RPATH            FALSE
                                             INSTALL_RPATH_USE_LINK_PATH TRUE )
 
-target_link_libraries(automoc4 ${QT_QTCORE_LIBRARY})
+find_package(Threads)
+target_link_libraries(automoc4 ${QT_QTCORE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
+
 
 install(TARGETS automoc4 DESTINATION bin)
 install(FILES Automoc4Config.cmake Automoc4Version.cmake automoc4.files.in  DESTINATION  lib${LIB_SUFFIX}/automoc4)