mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
210 stars 122 forks source link

Next Steps for Ninja on Windows #34490

Closed robertapplin closed 1 year ago

robertapplin commented 2 years ago

Describe the outcome that is desired. These are the next steps for using ninja to develop Mantid on windows.

robertapplin commented 2 years ago

Progress when trying to use ccache on windows:

  1. I activated my environment and did conda install -c conda-forge ccache
  2. I made sure the following was executed for windows in the CommonSetup.cmake
    option(USE_CCACHE "Use ccache to cache object artifacts if available" ON)
    if(USE_CCACHE)
    find_program(CCACHE_FOUND ccache)
    if(CCACHE_FOUND)
    set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
    set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
    endif()
    endif()
  3. I generated a new build with cmake --preset=win-ninja -B=../build && cd ../build && ninja
  4. I looked in /path/to/AppData/Roaming/ccache. There appears to be some caching going on