Skip to content

Commit aa40425

Browse files
committed
Add custom target for QT4_WRAP_CPP macro.
Move wmsprovider dependencies to QT4_WRAP_CPP target to fix parallel build.
1 parent 0eb3cd4 commit aa40425

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/providers/wms/CMakeLists.txt

+4-2
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)