Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build for any kind of arm combination #657

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

ayounes-nviso
Copy link
Contributor

  • This simplification allows to use src/CMakeLists.txt directly
    within a project that has its own toolchain.
  • Introduce NCNN_CMAKE_VERBOSE option to reduce cmake verbosity

@tencent-adm
Copy link

tencent-adm commented Nov 15, 2018

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Nov 15, 2018

Coverage Status

Coverage remained the same at ?% when pulling b79f42f on ayounes-nviso:cmake into 4a18702 on Tencent:master.

@ayounes-nviso
Copy link
Contributor Author

Hello,
I am trying to sign the CLA but it always times out...

src/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
@@ -155,6 +149,11 @@ ncnn_add_layer(PSROIPooling)

add_library(ncnn STATIC ${ncnn_SRCS})

find_package(OpenMP)
if(OpenMP_CXX_FOUND)
target_link_libraries(ncnn PUBLIC OpenMP::OpenMP_CXX)
Copy link
Member

Choose a reason for hiding this comment

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

only a static library is generated for the ncnn target
linking openmp library is required when building shared library/module or executable, but makes nonsense here

* Those changes allows to use src/CMakeLists.txt directly
  within a project that has its own toolchain and options.
* factorize arm and x86 cmake code,
* allow unix and android build for any kind of arm combination
* Introduce NCNN_CMAKE_VERBOSE option to reduce cmake verbosity
* use modern cmake for OpenMP detection and usage
@nihui
Copy link
Member

nihui commented Nov 20, 2018

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants