Skip to content
Snippets Groups Projects
Commit 3a1ca1e8 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

COMP: Fix configure error when build against Qt4

This commit fixes the following error:

```
[...]
-- Found Qt4: /home/jcfr/Support/qt-everywhere-opensource-build-4.8.7/bin/qmake (found version "4.8.7")
CMake Error at src/Cxx/Qt/CMakeLists.txt:64 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "BorderWidgetQt" which is not
  built by this project.
[...]


Former-commit-id: e8c5d86a
parent 04d43bbf
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,8 @@ foreach(EXAMPLE_FILE ${ALL_UI_FILES}) ...@@ -60,6 +60,8 @@ foreach(EXAMPLE_FILE ${ALL_UI_FILES})
# CMAKE_AUTOMOC in ON so the MocHdrs will be automatically wrapped. # CMAKE_AUTOMOC in ON so the MocHdrs will be automatically wrapped.
add_executable(${WIKI}${EXAMPLE} ${EXECUTABLE_FLAG} ${EXAMPLE}Driver.cxx ${EXAMPLE}.cxx ${UISrcs} ${EXAMPLE}.h) add_executable(${WIKI}${EXAMPLE} ${EXECUTABLE_FLAG} ${EXAMPLE}Driver.cxx ${EXAMPLE}.cxx ${UISrcs} ${EXAMPLE}.h)
qt5_use_modules(${WIKI}${EXAMPLE} Core Gui Widgets) qt5_use_modules(${WIKI}${EXAMPLE} Core Gui Widgets)
else()
add_executable(${WIKI}${EXAMPLE} ${EXECUTABLE_FLAG} ${EXAMPLE}.cxx)
endif() endif()
TARGET_LINK_LIBRARIES(${WIKI}${EXAMPLE} ${KIT_LIBS}) TARGET_LINK_LIBRARIES(${WIKI}${EXAMPLE} ${KIT_LIBS})
list(REMOVE_ITEM ALL_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE}Driver.cxx ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE}.cxx) list(REMOVE_ITEM ALL_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE}Driver.cxx ${CMAKE_CURRENT_SOURCE_DIR}/${EXAMPLE}.cxx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment