cmake_modules/platform.cmake
branch0.9.20
changeset 9889 54b49e8d8bfa
parent 9887 6add6157b58e
child 9899 5b8bde62a8ef
equal deleted inserted replaced
9887:6add6157b58e 9889:54b49e8d8bfa
    62         else()
    62         else()
    63             message(FATAL_ERROR "Unknown architecture present in CMAKE_OSX_ARCHITECTURES (${CMAKE_OSX_ARCHITECTURES})")
    63             message(FATAL_ERROR "Unknown architecture present in CMAKE_OSX_ARCHITECTURES (${CMAKE_OSX_ARCHITECTURES})")
    64         endif()
    64         endif()
    65         list(LENGTH CMAKE_OSX_ARCHITECTURES num_of_archs)
    65         list(LENGTH CMAKE_OSX_ARCHITECTURES num_of_archs)
    66         if(num_of_archs GREATER 1)
    66         if(num_of_archs GREATER 1)
    67             message(${WARNING} "Only one architecture in CMAKE_OSX_ARCHITECTURES is currently supported, picking the first one")
    67             message("*** Only one architecture in CMAKE_OSX_ARCHITECTURES is supported, picking the first one ***")
    68         endif()
    68         endif()
    69     elseif(CMAKE_SIZEOF_VOID_P MATCHES "8")
    69     elseif(CMAKE_SIZEOF_VOID_P MATCHES "8")
    70         #if that variable is not set check if we are on x86_64 and if so force it, else use default
    70         #if that variable is not set check if we are on x86_64 and if so force it, else use default
    71         add_flag_prepend(CMAKE_Pascal_FLAGS -Px86_64)
    71         add_flag_prepend(CMAKE_Pascal_FLAGS -Px86_64)
    72     endif()
    72     endif()