Open vanbwodonk opened 6 years ago
If i add empty file head-ref inside libmraa-1.9.0/CMakeFiles/git-data/ I can compile it successfully
delete things around https://github.com/intel-iot-devkit/mraa/blob/master/CMakeLists.txt#L90 and just keep https://github.com/intel-iot-devkit/mraa/blob/master/CMakeLists.txt#L94.
If that's seriously an issue then we can probably add a -DGITVERSIONING flag to disable that cmake module.
delete things around https://github.com/intel-iot-devkit/mraa/blob/master/CMakeLists.txt#L90 and just keep https://github.com/intel-iot-devkit/mraa/blob/master/CMakeLists.txt#L94.
@arfoll Thanks for response, try your suggestion and it works perfect. I will create patch for that on monday. This is my Makefile https://github.com/vanbwodonk/lks7688-LEDE-feeds/blob/master/libmraa/Makefile
If that's seriously an issue then we can probably add a -DGITVERSIONING flag to disable that cmake module.
This is will perfect. I search probably any option like this in docs. But i can't find it.
Could you try the following to see if it fixes it? I'm curious and can't seem to reproduce when this is exactly happening:
diff --git a/cmake/modules/GetGitRevisionDescription.cmake.in b/cmake/modules/GetGitRevisionDescription.cmake.in
index 888ce13..82a4237 100644
--- a/cmake/modules/GetGitRevisionDescription.cmake.in
+++ b/cmake/modules/GetGitRevisionDescription.cmake.in
@@ -32,7 +32,7 @@ else()
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
endif()
-if(NOT HEAD_HASH)
+if(NOT HEAD_HASH AND EXISTS "@GIT_DATA@/head-ref")
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
string(STRIP "${HEAD_HASH}" HEAD_HASH)
endif()
Hi, have you the patch or new Makefile that works ?
Hi i try to run make libmraa for LEDE on linkit MT7688. I try to compile release v1.9.0.tar.gz But i got this error?
It seems cmake detect build from git source, how i can bypass git check when compiling mraa?