Commit 3efa8347 authored by Simon Richter's avatar Simon Richter

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.
parent 2047d873
...@@ -115,6 +115,11 @@ if( NOT DEFAULT_INSTALL_PATH ) ...@@ -115,6 +115,11 @@ if( NOT DEFAULT_INSTALL_PATH )
"Location of KiCad data files." ) "Location of KiCad data files." )
endif() endif()
# Generate build system specific header file.
include( PerformFeatureChecks )
perform_feature_checks()
#================================================ #================================================
# Set flags for GCC, or treat llvm as GCC # Set flags for GCC, or treat llvm as GCC
#================================================ #================================================
...@@ -563,10 +568,6 @@ endif() ...@@ -563,10 +568,6 @@ endif()
# Include MinGW resource compiler. # Include MinGW resource compiler.
include( MinGWResourceCompiler ) include( MinGWResourceCompiler )
# Generate build system specific header file.
include( PerformFeatureChecks )
perform_feature_checks()
# Find GDI+ on windows if wxGraphicsContext is available. # Find GDI+ on windows if wxGraphicsContext is available.
if( MINGW AND USE_WX_GRAPHICS_CONTEXT ) if( MINGW AND USE_WX_GRAPHICS_CONTEXT )
find_package( GdiPlus ) find_package( GdiPlus )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment