fix use ccache by default on most systems

This commit is contained in:
Adrián Insaurralde Avalos
2023-07-25 22:52:49 -04:00
committed by Adrián Insaurralde Avalos
parent 87c528c250
commit 4ccf7a87a9
2 changed files with 6 additions and 5 deletions

View File

@@ -10,6 +10,12 @@ if (POLICY CMP0072)
set(OpenGL_GL_PREFERENCE LEGACY)
endif(POLICY CMP0072)
if (BUILD_WITH_CONDA AND WIN32)
option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" OFF)
else()
option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" ON)
endif()
if(FREECAD_USE_CCACHE)
find_program(CCACHE_PROGRAM ccache) #This check should occur before project()
if(CCACHE_PROGRAM)

View File

@@ -20,11 +20,6 @@ macro(InitializeFreeCADBuildOptions)
else()
option(FREECAD_USE_QT_FILEDIALOG "Use Qt's file dialog instead of the native one." ON)
endif()
if (BUILD_WITH_CONDA AND WIN32)
option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" OFF)
else()
option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" ON)
endif()
# == Win32 is default behaviour use the LibPack copied in Source tree ==========
if(MSVC)