Menu

can't build the gui with cmake

2025-07-12
2025-07-12
  • Daniel Marjamäki

    I can't build the gui with cmake:

    cmake -S /home/daniel/cppchecksolutions/cppcheck -B /home/daniel/cppchecksolutions/cppcheck/gui/build-cppcheck-Desktop-Debug -DBUILD_CLI=OFF -DBUILD_GUI=ON -DUSE_QT6=ON
    

    I get these error messages:

    CMake Error at CMakeLists.txt:50 (add_custom_target):
      Error evaluating generator expression:
    
        $<TARGET_FILE:cppcheck>
    
      No target "cppcheck"
    
    
    CMake Error at CMakeLists.txt:53 (add_custom_target):
      Error evaluating generator expression:
    
        $<TARGET_FILE:cppcheck>
    
      No target "cppcheck"
    
    
    CMake Error at CMakeLists.txt:50 (add_custom_target):
      Error evaluating generator expression:
    
        $<TARGET_FILE:cppcheck>
    
      No target "cppcheck"
    
    
    CMake Error at CMakeLists.txt:53 (add_custom_target):
      Error evaluating generator expression:
    
        $<TARGET_FILE:cppcheck>
    
      No target "cppcheck"
    
     
  • Daniel Marjamäki

    anyway I turned on the CLI and now I can build the GUI. but I think this is a hack I'd rather avoid it.

     

    Last edit: Daniel Marjamäki 2025-07-12

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.