提交 febf9a0b 编写于 作者: L liaogang

Add comments and CMAKE_SYSTEM_NAME

上级 63118767
3 合并请求!11636[IMPORTANT] MKLDNN layout: Support for sum operator,!2081Release/0.10.0,!1195detect redhat and unknown in CMake
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# Detects the OS and sets appropriate variables.
# CMAKE_SYSTEM_NAME only give us a coarse-grained name,
# but the name like centos is necessary in some scenes
# to distinguish system for customization.
#
# for instance, protobuf libs path is <install_dir>/lib64
# on CentOS, but <install_dir>/lib on other systems.
IF(WIN32) IF(WIN32)
SET(HOST_SYSTEM "win32") SET(HOST_SYSTEM "win32")
ELSE(WIN32) ELSE(WIN32)
...@@ -45,7 +53,7 @@ ELSE(WIN32) ...@@ -45,7 +53,7 @@ ELSE(WIN32)
ENDIF(EXISTS "/etc/redhat-release") ENDIF(EXISTS "/etc/redhat-release")
IF(NOT HOST_SYSTEM) IF(NOT HOST_SYSTEM)
SET(HOST_SYSTEM "unknown") SET(HOST_SYSTEM ${CMAKE_SYSTEM_NAME})
ENDIF() ENDIF()
ENDIF(APPLE) ENDIF(APPLE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部