Giter VIP home page Giter VIP logo

Comments (10)

rpavlik avatar rpavlik commented on July 21, 2024

I think 43a50aa should fix this, by a slightly different (and backward compatible) method, can you double-check?

from cmake-modules.

Mathnerd314 avatar Mathnerd314 commented on July 21, 2024

Sorry, it's been so long I don't even remember which project I was trying to get building. So I can't test. But the patch looks fine to me.

from cmake-modules.

rpavlik avatar rpavlik commented on July 21, 2024

Thanks anyway!

from cmake-modules.

irov avatar irov commented on July 21, 2024

Hello!
After this commit, my code is

SET (MENGINE_ENGINE_GIT_SHA1 "0000000000000000000000000000000000000000")
get_git_head_revision (GIT_REFSPEC MENGINE_ENGINE_GIT_SHA1)

stopped working and returns me GITDIR-NOTFOUND

https://github.com/irov/Mengine/blob/master/src/Config/CMakeLists.txt

Thanks!

from cmake-modules.

rpavlik avatar rpavlik commented on July 21, 2024

Is your CMAKE_SOURCE_DIR not in the same directory as your git repo root?

from cmake-modules.

irov avatar irov commented on July 21, 2024

Is your CMAKE_SOURCE_DIR not in the same directory as your git repo root?

Yes, my CMakeLists.txt place in ./cmake/Win32/

from cmake-modules.

rpavlik avatar rpavlik commented on July 21, 2024

OK, yeah, we'll have to tweak something here. I'll see if I can poke together something.

from cmake-modules.

rpavlik avatar rpavlik commented on July 21, 2024

There, pushed something for you @irov , hope it helps! If you still have issues, open a new issue.

from cmake-modules.

irov avatar irov commented on July 21, 2024

for get_git_head_revision(GIT_REFSPEC MENGINE_ENGINE_GIT_SHA1)

CMake Error at D:/Projects/Mengine/dependencies/cmake-modules/GetGitRevisionDescription.cmake:89 (if):
  if given arguments:

    "STREQUAL" "ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR"

  Unknown arguments specified

but get_git_head_revision(GIT_REFSPEC MENGINE_ENGINE_GIT_SHA1 "ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR")

it's good! Thanks!

from cmake-modules.

rpavlik avatar rpavlik commented on July 21, 2024

oh, oops, thanks. Fixed that now.

from cmake-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.