thelartians / ccache.cmake Goto Github PK
View Code? Open in Web Editor NEW๐ Compile faster with Ccache! A Ccache integration for CMake with Xcode support.
License: MIT License
๐ Compile faster with Ccache! A Ccache integration for CMake with Xcode support.
License: MIT License
Hi,
would it be possible to put this repository under a specific license? I would like to include the cmake file in my repository, but without a license, that doesn't seem to be allowed.
Thanks
Hey!
I've put together a minimal example in a repo to show what's happening:
https://github.com/phraemer/reimagined-octo-guacamole
Probably just me doing something wrong but I couldn't figure it out yet.
See the error here:
https://github.com/phraemer/reimagined-octo-guacamole/runs/2213566880?check_suite_focus=true#step:4:64
Any ideas?
Let me know if I can help in any way
thanks!
James
CMake are going to drop compatibility with < CMake 3.5 and are already printing warnings in builds with 3.27
https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
Can we have a new release with the minimum version raised to at least 3.5 please?
Thanks.
MSVC:
'E:\Projects\rpgmpacker\cmake-build-debug-x64\_deps\ccache.cmake-build\launch-cxx' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'E:\Projects\rpgmpacker\cmake-build-debug-x64\_deps\ccache.cmake-build\launch-cxx' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
MinGW:
process_begin: CreateProcess(NULL, sh E:\Projects\rpgmpacker\cmake-build-debug-mingw\_deps\ccache.cmake-build\launch-cxx C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -DSIMDJSON_THREADS_ENABLED=1 -DSIMDJSON_USING_LIBRARY=1 -DSPDLOG_COMPILED_LIB @CMakeFiles/RPGMPacker.dir/includes_CXX.rsp -g -std=gnu++17 -o CMakeFiles\RPGMPacker.dir\src\main.cpp.obj -c E:\Projects\rpgmpacker\src\main.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[3]: *** [CMakeFiles\RPGMPacker.dir\build.make:83: CMakeFiles/RPGMPacker.dir/src/main.cpp.obj] Error 2
mingw32-make.exe[3]: *** Waiting for unfinished jobs....
process_begin: CreateProcess(NULL, sh E:\Projects\rpgmpacker\cmake-build-debug-mingw\_deps\ccache.cmake-build\launch-cxx C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -DSIMDJSON_THREADS_ENABLED=1 -DSIMDJSON_USING_LIBRARY=1 -DSPDLOG_COMPILED_LIB @CMakeFiles/RPGMPacker.dir/includes_CXX.rsp -g -std=gnu++17 -o CMakeFiles\RPGMPacker.dir\src\md5.cpp.obj -c E:\Projects\rpgmpacker\src\md5.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[3]: *** [CMakeFiles\RPGMPacker.dir\build.make:97: CMakeFiles/RPGMPacker.dir/src/md5.cpp.obj] Error 2
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:348: CMakeFiles/RPGMPacker.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:355: CMakeFiles/RPGMPacker.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:206: RPGMPacker] Error 2
CMakeLists.txt:
if (USE_CCACHE)
CPMAddPackage (
NAME Ccache.cmake
GITHUB_REPOSITORY TheLartians/Ccache.cmake
VERSION 1.2
)
endif()
Lines 22 to 23 in e0171fb
In the current version, the launch-c
and launch-cxx
files need to be present in the project directory (the project which is using Ccache.cmake). A use case that disallows this is to clone this project (Ccache.cmake) and then just include its main CMakeLists.txt
file in place from the project using it. For example, when compiling a project I might say:
$ cmake -DCMAKE_PROJECT_a_project_INCLUDE=/path/to/Ccache.cmake ..
This statement works if I include launch-c
and launch-cxx
in the project directory, but not otherwise, due to the bare references to them in the main CMakeLists.txt
file.
I suggest adding ${CMAKE_CURRENT_LIST_DIR}/
prefix to them to allow the project to be included from anywhere.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.