Skip to content

Commit 410115d

Browse files
authored
Merge pull request #6701 from sebastic/wmsprovider-qt4_wrap_cpp-dependencies
Add custom target for QT4_WRAP_CPP macro to fix parallel builds.
2 parents 3c3c00a + aa40425 commit 410115d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/providers/wms/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ SET (WMS_MOC_HDRS
2626

2727
QT4_WRAP_CPP (WMS_MOC_SRCS ${WMS_MOC_HDRS})
2828

29+
ADD_CUSTOM_TARGET(wms_cpp ALL DEPENDS ${WMS_MOC_SRCS})
30+
31+
ADD_DEPENDENCIES(wms_cpp qgis_gui ui)
32+
2933
INCLUDE_DIRECTORIES(
3034
.
3135
../../core
@@ -46,8 +50,6 @@ INCLUDE_DIRECTORIES(SYSTEM
4650
ADD_LIBRARY(wmsprovider_a STATIC ${WMS_SRCS} ${WMS_MOC_SRCS})
4751
ADD_LIBRARY(wmsprovider MODULE ${WMS_SRCS} ${WMS_MOC_SRCS})
4852

49-
ADD_DEPENDENCIES(wmsprovider qgis_gui ui)
50-
5153
TARGET_LINK_LIBRARIES(wmsprovider
5254
qgis_core
5355
qgis_gui

0 commit comments

Comments
 (0)