← Back to team overview

kicad-developers team mailing list archive

[PATCH 1/2] Move feature check before dependent tests

 

The GCC/LLVM specific handling for adding -fvisibility options is later in
this file, so these options would only be added on the second invocation
without clearing the cache.
---
 CMakeLists.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c37ff3..ea19617 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -105,6 +105,11 @@ endif()
 mark_as_advanced( KICAD_USER_CONFIG_DIR )
 
 
+# Generate build system specific header file.
+include( PerformFeatureChecks )
+perform_feature_checks()
+
+
 #================================================
 # Set flags for GCC, or treat llvm as GCC
 #================================================
@@ -553,10 +558,6 @@ endif()
 # Include MinGW resource compiler.
 include( MinGWResourceCompiler )
 
-# Generate build system specific header file.
-include( PerformFeatureChecks )
-perform_feature_checks()
-
 # Find GDI+ on windows if wxGraphicsContext is available.
 if( MINGW AND USE_WX_GRAPHICS_CONTEXT )
     find_package( GdiPlus )

Follow ups

References