• Sang Ik Lee's avatar
    Cleanup how compile flags are set and used by nGraph and external projects. (#2942) · 08dcd01b
    Sang Ik Lee authored
    * Cleanup how compile flags set and used by nGraph and external projects.
    Set C++11 through CMake and pass it down to external projects.
    Prefer CMake variables such as CMAKE_POSITION_INDEPENDENT_CODE and
    CMAKE_CXX_STANDARD instead of explicitly setting compiler dependent
    flags.
    Create json compilation database for external projects.
    CMAKE_CXX_FLAGS is used as common global options for nGraph and external
    projects.
    add_compile_options() is used for local options for current and sub
    directories.
    add_definitions() is used for setting definitions for current and sub
    directories.
    Note: Global options are not passed down to some external projects.
    Note: mkl-dnn resets CMAKE_CXX_FLAGS internally.
    Note: TBB and MLSL are not CMake based.
    Noet: Eigen and json is header only library.
    
    * Fix error.
    
    * Fix error. (second attempt)
    
    * Cleanup code.
    
    * Allow check for undefined macro.
    
    * Try to fix cldnn issue.
    
    * Set type for CMake arguments.
    
    * Pass C++ standard to protobuf.
    
    * Pass C++ standard down to TBB.
    
    * Change how Clang specific flags are handled.
    
    * Fix error.
    
    * Workaround for compile error on Baidu's PDPD docker.
    
    * Fix windows build error.
    08dcd01b
Name
Last commit
Last update
.ci Loading commit data...
cmake Loading commit data...
contrib/docker Loading commit data...
doc Loading commit data...
licenses Loading commit data...
maint Loading commit data...
python Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
ABOUT.md Loading commit data...
CMakeLists.txt Loading commit data...
CODEOWNERS Loading commit data...
CONTRIB.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
VERSION.in Loading commit data...
changes.md Loading commit data...
ecosystem-overview.md Loading commit data...