Support (self written wrapper for) clcache on Windows

Since clcache gets problems for .rc files, the ccache functionality is
disabled in the ng/ subdirectory
This commit is contained in:
Matthias Hochsteger 2017-02-27 07:29:57 -08:00
parent 90d4c94028
commit b48a2bbd5e
2 changed files with 4 additions and 3 deletions

View File

@ -40,10 +40,9 @@ set(CPACK_PACKAGE_VERSION "${PACKAGE_VERSION}")
#######################################################################
if(USE_CCACHE)
find_program(CCACHE_FOUND ccache)
find_program(CCACHE_FOUND NAMES ccache ccache.bat)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
endif(CCACHE_FOUND)
endif(USE_CCACHE)

View File

@ -5,6 +5,8 @@ if(USE_GUI)
# add icon to netgen executable
enable_language(RC)
set(netgen_sources ${netgen_sources} ../windows/netgen.rc)
# Don't use ccache here due to incompatiblity with the resource compiler
set_directory_properties(PROPERTIES RULE_LAUNCH_COMPILE "")
endif(WIN32)
add_executable(netgen ${netgen_sources})