Is it possible to export BSP compiler flags to global scope?

Sysprogs forums Forums VisualGDB Is it possible to export BSP compiler flags to global scope?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #37028
    wtywtykk
    Participant

    Hi,

    I’m using CMake based projects. Though VisualGDB has it’s own way to add libraries (add_bsp_based_executable and add_bsp_based_library), I sometimes need to use conventional libraries added by CMake native add_library. Since the compiler flags are not in global scope, I get VFP errors and ARM/Thumb mode errors. Also, for libraries that are purely algorithm, it’s not really good to use add_bsp_based_library because I need to pass the BSP name everywhere, and unused functions are added to the library.

    So, Is it possible for you to add a CMake function like “export_bsp_compiler_flags_to_global(BSP)” to make the compiler flags visible to the whole project?

    Regards.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.