update the way we detect the system
This commit is contained in:
8
Makefile
8
Makefile
@@ -23,14 +23,10 @@ OR_TOOLS_MINOR = 1
|
||||
ifeq ($(OR_TOOLS_TOP),)
|
||||
OR_ROOT =
|
||||
else
|
||||
ifeq "$(SHELL)" "cmd.exe"
|
||||
ifeq ($(OS), Windows_NT)
|
||||
OR_ROOT = $(OR_TOOLS_TOP)\\
|
||||
else
|
||||
ifeq "$(SHELL)" "sh.exe"
|
||||
OR_ROOT = $(OR_TOOLS_TOP)\\
|
||||
else
|
||||
OR_ROOT = $(OR_TOOLS_TOP)/
|
||||
endif
|
||||
OR_ROOT = $(OR_TOOLS_TOP)/
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -3,14 +3,10 @@ SPACE := $(empty) $(empty)
|
||||
BACKSLASH_SPACE := $(empty)\ $(empty)
|
||||
|
||||
# Let's discover something about where we run
|
||||
ifeq "$(SHELL)" "cmd.exe"
|
||||
ifeq ($(OS), Windows_NT)
|
||||
SYSTEM = win
|
||||
else
|
||||
ifeq "$(SHELL)" "sh.exe"
|
||||
SYSTEM = win
|
||||
else
|
||||
SYSTEM = unix
|
||||
endif
|
||||
SYSTEM = unix
|
||||
endif
|
||||
|
||||
# Unix specific part.
|
||||
@@ -213,3 +209,4 @@ ifeq ("$(SYSTEM)","unix")
|
||||
else
|
||||
@echo CMAKE_PLATFORM = $(CMAKE_PLATFORM)
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user