← Back to team overview

kicad-developers team mailing list archive

CMakeLists.txt order

 

Currently the add_directory()'s in the main CMakeLists.txt file are before
stuff like find_package( Doxygen ) and so it needs to be repeated in
pcbnew, Is there a reason for this order?

Attached is a patch that changes the order of things to put add_directory
at the bottom so all flags in the primary Lists.txt will be set and usable
in the subfolder CMake files.

Currently you get 2 warnings if doxygen is not found.

As it is this patch has been tested by ChrisP and myself with no problems
but i am unsure if it is just outside of our usecase/environment.

This patch also removes #include <config.h> from inc_before but as # is
comment in cmake it doesn't get used anyway, and isn't even possible to
include files that way

thanks

Simon

Attachment: kicad-CMakeLists.patch
Description: Binary data


Follow ups