Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
1ddb9bf7
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1ddb9bf7
编写于
5月 03, 2017
作者:
L
Liu Yiqun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Delete the configuration of fortran compiler.
上级
c27e71e2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
23 deletion
+1
-23
cmake/cross_compiling/android.cmake
cmake/cross_compiling/android.cmake
+0
-11
cmake/cross_compiling/raspberry_pi.cmake
cmake/cross_compiling/raspberry_pi.cmake
+0
-11
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+1
-1
未找到文件。
cmake/cross_compiling/android.cmake
浏览文件 @
1ddb9bf7
...
...
@@ -129,19 +129,8 @@ IF("${CMAKE_VERSION}" VERSION_LESS "3.7.0")
MESSAGE
(
FATAL_ERROR
"Cannot find CXX compiler:
${
ANDROID_CXX_COMPILER
}
"
)
ENDIF
()
# Fortran compiler
IF
(
NOT CMAKE_Fortran_COMPILER
)
SET
(
ANDROID_Fortran_COMPILER
"
${
ANDROID_TOOLCHAIN_PREFIX
}
gfortran"
)
ELSE
()
GET_FILENAME_COMPONENT
(
ANDROID_Fortran_COMPILER
${
CMAKE_Fortran_COMPILER
}
)
ENDIF
()
IF
(
NOT EXISTS
${
ANDROID_Fortran_COMPILER
}
)
SET
(
ANDROID_Fortran_COMPILER
""
)
ENDIF
()
SET
(
CMAKE_C_COMPILER
${
ANDROID_C_COMPILER
}
CACHE PATH
"C compiler"
FORCE
)
SET
(
CMAKE_CXX_COMPILER
${
ANDROID_CXX_COMPILER
}
CACHE PATH
"CXX compiler"
FORCE
)
SET
(
CMAKE_Fortran_COMPILER
${
ANDROID_Fortran_COMPILER
}
CACHE PATH
"Fortran compiler"
FORCE
)
# Toolchain and ABI specific flags.
SET
(
ANDROID_COMPILER_FLAGS
"-ffunction-sections -fdata-sections -finline-limit=64"
)
...
...
cmake/cross_compiling/raspberry_pi.cmake
浏览文件 @
1ddb9bf7
...
...
@@ -73,19 +73,8 @@ IF(NOT EXISTS ${RPI_CXX_COMPILER})
MESSAGE
(
FATAL_ERROR
"Cannot find CXX compiler:
${
RPI_CXX_COMPILER
}
"
)
ENDIF
()
# Fortran compiler
IF
(
NOT CMAKE_Fortran_COMPILER
)
SET
(
RPI_Fortran_COMPILER
"
${
RPI_TOOLCHAIN_PREFIX
}
gfortran"
)
ELSE
()
GET_FILENAME_COMPONENT
(
RPI_Fortran_COMPILER
${
CMAKE_Fortran_COMPILER
}
PROGRAM
)
ENDIF
()
IF
(
NOT EXISTS RPI_Fortran_COMPILER
)
SET
(
RPI_Fortran_COMPILER
""
)
ENDIF
()
SET
(
CMAKE_C_COMPILER
${
RPI_C_COMPILER
}
CACHE PATH
"C compiler"
FORCE
)
SET
(
CMAKE_CXX_COMPILER
${
RPI_CXX_COMPILER
}
CACHE PATH
"CXX compiler"
FORCE
)
SET
(
CMAKE_Fortran_COMPILER
${
RPI_Fortran_COMPILER
}
CACHE PATH
"Fortran compiler"
FORCE
)
IF
(
RPI_ARM_NEON
)
SET
(
RPI_C_FLAGS
"
${
RPI_C_FLAGS
}
-mfpu=neon"
)
...
...
cmake/external/protobuf.cmake
浏览文件 @
1ddb9bf7
...
...
@@ -76,7 +76,6 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
ENDFUNCTION
()
IF
(
NOT CMAKE_CROSSCOMPILING
)
SET
(
PROTOBUF_VERSION 3.1
)
FIND_PACKAGE
(
Protobuf
${
PROTOBUF_VERSION
}
)
IF
(
PROTOBUF_FOUND
)
...
...
@@ -92,6 +91,7 @@ ELSE()
CACHE FILEPATH
"protobuf executable."
FORCE
)
ENDIF
()
SET
(
PROTOBUF_VERSION 3.1
)
IF
(
NOT PROTOBUF_FOUND
)
build_protobuf
(
protobuf FALSE
)
SET
(
PROTOBUF_INCLUDE_DIR
${
protobuf_INCLUDE_DIR
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录