Move "update_mappings" CMake target

Hi guys,

I’m using GLFW as CMake submodule for my project.
For my submodules I have a dedicated directory where I want to place them all. However when I configure the location for the GLFW submodule, an extra “Update_mappings” target shows up under my root folder…

Is there a recommended way to specify the “root/home” dir of GLFW so that everything is moved/placed in that folder?
Btw: I don’t think I will use the joystick/pad mappings at all, but haven’t found a way (flag etc.) to exclude them.
Is there a way?

Thanks in advance

Any help or hint appreciated :smile:

If you try this GLFW-CMake-starter does it do the same or not?

There the structure is as follows:

  • GLFW3
    – glfw
    – update_mappings
  • GLFW_CMake_starter
    • main.cpp

So yes, both targets in the same GLFW folder.

My project looks like:

  • GLFW3
    – update_mappings
  • thirdparty
    • submodule_01
    • submodule_02
    • GLFW3
      – glfw
  • MyApp
    • main.cpp

Sure I can set the target location of every GLFW3 target manually…

# Any better way to do this?
# (move location to "thirdparty")
set_target_properties(glfw PROPERTIES FOLDER thirdparty/GLFW3)
set_target_properties(update_mappings PROPERTIES FOLDER thirdparty/GLFW3)

but I don’t want to keep track of any possible changes and additional/optional targets that might be added in the future by GLFW.