I have a CMakeLists.txt file for my project and under deps/SFML
I have the SFML 2.5.0 git repo checked out as a dependency. I add this directory using add_subdirectory()
to automatically build SFML while using target_link_libraries()
to link against SFML.
SFML decided to call some install()
directives with DIRECTORY
and COMPONENT
specified. As such, building my NSIS-generated installation package, I see a "devel" component you can install which installs some files.
How do I correctly disable these install
targets?
The CMake mailing list says use the COMPONENT option to install() for your own project and then select a component-based package if you are packaging with CPack. Since I can't control what SFML does in the future with component naming, and my project or other projects might also use "devel" as a component, I can't possibly disable a generic component like that. What do I do to portably disable this?