diff --git a/cmake/ACGQt.cmake b/cmake/ACGQt.cmake index bee96d9f2ed403342f2590695fdab823ea20b044..c5c6a5a94de1b806288a33f40304d35a8825829f 100644 --- a/cmake/ACGQt.cmake +++ b/cmake/ACGQt.cmake @@ -16,9 +16,6 @@ macro (acg_qt5) # Automatically link Qt executables to qtmain target on Windows cmake_policy(SET CMP0020 NEW) endif(POLICY CMP0020) - #if (NOT QT5_FOUND) - - #set (QT_MIN_VERSION ${ARGN}) #try to find qt5 automatically #for custom installation of qt5, dont use any of these variables diff --git a/src/OpenMesh/Apps/QtViewer/CMakeLists.txt b/src/OpenMesh/Apps/QtViewer/CMakeLists.txt index d7991679d2175fe582a2f15cb6794a5259224ab9..2cfb0fc549b7e7f82ebd20398cae4025c1daf4cd 100644 --- a/src/OpenMesh/Apps/QtViewer/CMakeLists.txt +++ b/src/OpenMesh/Apps/QtViewer/CMakeLists.txt @@ -22,7 +22,7 @@ acg_drop_templates (sources) if (WIN32) acg_add_executable (QtViewer WIN32 ${sources} ${headers}) # link to qtmain library to get WinMain function for a non terminal app - target_link_libraries (${targetName} ${QT_QTMAIN_LIBRARY}) + target_link_libraries (QtViewer ${QT_QTMAIN_LIBRARY}) else () acg_add_executable (QtViewer ${sources} ${headers}) endif ()