diff --git a/src/Cxx/Qt/CMakeLists.txt b/src/Cxx/Qt/CMakeLists.txt index c2da340dc0d2ede37b3d2ede22c08d747bdb33f0..d16f77d1d1ef60d3ea0237fe262dbd63f8cb1418 100644 --- a/src/Cxx/Qt/CMakeLists.txt +++ b/src/Cxx/Qt/CMakeLists.txt @@ -76,8 +76,8 @@ if(NOT Qt6Widgets_FOUND) endif() if (NOT DEFINED VTK_QT_VERSION) - set (VTK_QT_VERSION 5) -endif () + set(VTK_QT_VERSION 5) +endif() if(NOT qt_version STREQUAL VTK_QT_VERSION) message(STATUS "VTKWikiExamples: Not building Qt examples, VTK not built with the same Qt version.") @@ -144,7 +144,7 @@ foreach(EXAMPLE_FILE ${ALL_FILES}) string(REPLACE ${CMAKE_CURRENT_SOURCE_DIR}/ "" EXAMPLE ${TMP}) add_executable(${WIKI}${EXAMPLE} ${EXECUTABLE_FLAG} ${EXAMPLE}.cxx) if (Qt${qt_version}Widgets_VERSION VERSION_LESS "5.11.0") - qt5_use_modules(${WIKI}${EXAMPLE} ${qt_components}) + qt5_use_modules(${WIKI}${EXAMPLE} ${qt_components}) else() target_link_libraries(${WIKI}${EXAMPLE} ${qt_modules}) endif()