Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Creator failing on add_custom_target()



  • Hi all -

    Another developer on this project just added the following to the main CMakeLists.txt file:

    add_custom_target(syntax-configuration-editor ALL
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tools/instrument_service_dashboard
        COMMAND npm run dist
    )
    
    install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tools/instrument_service_dashboard/build/syntax-configuration-editor-1.0.0.AppImage
            COMPONENT executables
            DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
            RENAME syntax-configuration-editor
            PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
    

    Which is now giving me the following errors on build:

    asset main.js 33 KiB [compared for emit] [minimized] (name:-1: error: main)
    asset renderer.js 997 KiB [compared for emit] [minimized] (name:-1: error: main) 2 related assets
    

    No one else is using Creator, or having this problem. I have no idea what those messages even mean.

    Someone suggested putting a condition around the above code in the CMakeLists.txt file, basically to bypass those steps if running on Creator. Is this possible?

    Thanks...


Log in to reply