Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
include(system)

project(paddle CXX C Go)
MESSAGE(STATUS "CXX compiler version:" ${CMAKE_C_COMPILER_VERSION})
Copy link
Contributor

@Xreki Xreki Dec 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMAKE_C_COMPILER_VERSION -> CMAKE_CXX_COMPILER_VERSION
或者两个都打印下,另外compiler路径也打印下?
另外,不太习惯有的关键字大写,有的小写,:flushed:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. The print result is

-- CXX compiler: /home/luotao02/.jumbo/opt/gcc48/bin/c++, version: 4.8.3
-- C compiler: /home/luotao02/.jumbo/opt/gcc48/bin/cc, version: 4.8.3


find_package(Sphinx)
if(NOT CMAKE_CROSSCOMPILING)
Expand Down