-RM-149-MR-Need extra target_link_library to compile on opensuse
I need to include X11 for making it compile. Can anyone test if it compile on their debin/ubuntu machine if they include it? If so I would like to change this.
diff -r d40d3399c840 src/qt4gui/CMakeLists.txt --- a/src/qt4gui/CMakeLists.txt Mon Apr 02 17:14:26 2012 +0200 +++ b/src/qt4gui/CMakeLists.txt Mon Apr 02 19:29:49 2012 +0200 @@ -70,7 +70,7 @@
Setup the target
ADD_EXECUTABLE( ${BinName} ${TARGET_CPP_FILES} ${TARGET_H_FILES} ${OW_VERSION_HEADER} ) -TARGET_LINK_LIBRARIES( ${BinName} ${OW_LIB_OPENWALNUT} ${QT_LIBS} ${Boost_LIBRARIES} ) +TARGET_LINK_LIBRARIES( ${BinName} ${OW_LIB_OPENWALNUT} ${QT_LIBS} ${Boost_LIBRARIES} X11)
Tell CMake that someone creates this file for us. See doc of SETUP_VERSION_HEADER for details why this is needed.
NOTE: this needs to be placed AFTER ADD_EXECUTABLE or ADD_LIBRARY
(from redmine: created on 2012-04-02, closed on 2012-04-03)