Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Creator failing on add_custom_target()
Forum Updated to NodeBB v4.3 + New Features

Creator failing on add_custom_target()

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 181 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved