Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
750c42d6
"examples/offline_chat_with_tools.py" did not exist on "e73356411d99ef9447f40551f97154ba76d5e329"
Commit
750c42d6
authored
Jun 09, 2023
by
Ted Themistokleous
Browse files
Add Checks for Unix distributions
parent
28b9cab5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
CMakeLists.txt
CMakeLists.txt
+18
-0
No files found.
CMakeLists.txt
View file @
750c42d6
...
...
@@ -46,6 +46,24 @@ else()
set
(
CMAKE_INSTALL_PREFIX
"/opt/rocm"
CACHE PATH
""
)
endif
()
# Determine UNIX distribution
if
(
NOT WIN32
)
file
(
READ
"/etc/os-release"
ETC_ISSUE
)
string
(
REGEX MATCH
"Debian|Ubuntu|CentOS|RHEL|SLES"
DIST
${
ETC_ISSUE
}
)
if
(
DIST STREQUAL
"Debian"
)
message
(
STATUS
"Debian OS detected!"
)
elseif
(
DIST STREQUAL
"Ubuntu"
)
message
(
STATUS
"Ubuntu OS detected!"
)
elseif
(
DIST STREQUAL
"CentOS"
)
message
(
STATUS
"CENTOS detected!"
)
elseif
(
DIST STREQUAL
"Red Hat"
)
message
(
STATUS
"Red Hat detected!"
)
elseif
(
DIST STREQUAL
"SUSE"
)
message
(
STATUS
"SLES detected!"
)
endif
()
endif
()
set
(
CMAKE_BUILD_RPATH
"
${
CMAKE_BINARY_DIR
}
/lib"
)
project
(
migraphx
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment