CMake: permit ccache with conda.
This commit is contained in:
@@ -10,11 +10,7 @@ if (POLICY CMP0072)
|
|||||||
set(OpenGL_GL_PREFERENCE LEGACY)
|
set(OpenGL_GL_PREFERENCE LEGACY)
|
||||||
endif(POLICY CMP0072)
|
endif(POLICY CMP0072)
|
||||||
|
|
||||||
if (BUILD_WITH_CONDA AND WIN32)
|
option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" ON)
|
||||||
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)
|
if(FREECAD_USE_CCACHE)
|
||||||
find_program(CCACHE_PROGRAM ccache) #This check should occur before project()
|
find_program(CCACHE_PROGRAM ccache) #This check should occur before project()
|
||||||
|
|||||||
Reference in New Issue
Block a user