Skip to content

Instantly share code, notes, and snippets.

@mikadou
Created February 18, 2016 20:49
Show Gist options
  • Save mikadou/2824b9e3b20b0139aec2 to your computer and use it in GitHub Desktop.
Save mikadou/2824b9e3b20b0139aec2 to your computer and use it in GitHub Desktop.
cmake_minimum_required( VERSION 3.0.2 )
find_package( Git )
message( "FindGit: ${GIT_EXECUTABLE}" )
file( GLOB_RECURSE CUSTOM_GIT_EXE "$ENV{LOCALAPPDATA}/GitHub/PortableGit_*/cmd/git.exe" )
message( "LocalAppData: $ENV{LOCALAPPDATA}" )
message( "GLOB_RECURSE: ${CUSTOM_GIT_EXE}" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment