Changeset 268 in flair-src for trunk/lib/FlairVisionFilter


Ignore:
Timestamp:
10/04/18 13:49:49 (3 years ago)
Author:
Sanahuja Guillaume
Message:

add defines for architectures to speed up compile time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairVisionFilter/CMakeLists.txt

    r216 r268  
    22cmake_minimum_required(VERSION 2.8)
    33include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     4
     5if(NOT "${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "armv5te")
    46
    57find_package(LibXml2 REQUIRED)
     
    4951
    5052add_dependencies(${PROJECT_NAME} compile_info)
     53
     54else()
     55    if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
     56        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
     57    else()
     58        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
     59    endif()
     60endif()
Note: See TracChangeset for help on using the changeset viewer.