Ensure the Eigen code that is getting #included is licensed under the MPL2 and possibly more permissive licenses (like BSD). (#1076)

This commit is contained in:
Pranav Sharma 2019-05-22 09:58:06 -07:00 committed by GitHub
parent 9f79ff52ba
commit bc01f7b16f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,10 @@ if(onnxruntime_USE_OPENMP)
endif()
endif()
# Guarantee that the Eigen code that you are #including is licensed
# under the MPL2 and possibly more permissive licenses (like BSD).
add_definitions(-DEIGEN_MPL2_ONLY)
if(onnxruntime_CROSS_COMPILING)
set(CMAKE_CROSSCOMPILING ON)
endif()