Skip to content

Commit

Permalink
Add custom target for QT4_WRAP_CPP macro.
Browse files Browse the repository at this point in the history
Move wmsprovider dependencies to QT4_WRAP_CPP target to fix parallel build.
  • Loading branch information
sebastic committed Mar 28, 2018
1 parent 0eb3cd4 commit aa40425
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/wms/CMakeLists.txt
Expand Up @@ -26,6 +26,10 @@ SET (WMS_MOC_HDRS

QT4_WRAP_CPP (WMS_MOC_SRCS ${WMS_MOC_HDRS})

ADD_CUSTOM_TARGET(wms_cpp ALL DEPENDS ${WMS_MOC_SRCS})

ADD_DEPENDENCIES(wms_cpp qgis_gui ui)

INCLUDE_DIRECTORIES(
.
../../core
Expand All @@ -46,8 +50,6 @@ INCLUDE_DIRECTORIES(SYSTEM
ADD_LIBRARY(wmsprovider_a STATIC ${WMS_SRCS} ${WMS_MOC_SRCS})
ADD_LIBRARY(wmsprovider MODULE ${WMS_SRCS} ${WMS_MOC_SRCS})

ADD_DEPENDENCIES(wmsprovider qgis_gui ui)

TARGET_LINK_LIBRARIES(wmsprovider
qgis_core
qgis_gui
Expand Down

0 comments on commit aa40425

Please sign in to comment.