Minor corrections to the build system.

This commit is contained in:
H0zen 2015-08-20 10:46:04 +03:00
parent 7dd350c2e8
commit 3ef7f86829
2 changed files with 4 additions and 8 deletions

View File

@ -72,9 +72,9 @@ message(
PLAYERBOTS Enable Player Bots PLAYERBOTS Enable Player Bots
To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'. To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
Also, you can specify the generator with -G. see 'cmake --help' for more details Also, you can specify the generator with -G. see 'cmake --help' for more details
For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos" For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos
Note: On UNIX systems, CONF_DIR is relative to the bin folder. Note: On UNIX systems, CONF_DIR is relative to the bin folder."
) )
message("") message("")

View File

@ -35,12 +35,8 @@ endif()
find_program(GIT_EXECUTABLE find_program(GIT_EXECUTABLE
NAMES ${git_names} NAMES ${git_names}
PATHS HINTS
"$ENV{ProgramFiles}/Git/bin" ENV PATH
"$ENV{ProgramFiles(x86)}/Git/bin"
"$ENV{PATH}"
"/usr/bin"
"/usr/local/bin"
DOC "git command line client" DOC "git command line client"
) )
mark_as_advanced(GIT_EXECUTABLE) mark_as_advanced(GIT_EXECUTABLE)