Changeset 3372 in CLRX


Ignore:
Timestamp:
Sep 13, 2017, 8:29:26 PM (15 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Improve Mingw detection (bitness) (for OpenCL detection).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3371 r3372  
    245245ENDIF(NOT NO_OPENCL AND OPENCL_DIST_DIR)
    246246
     247IF("${CMAKE_CXX_COMPILER}" MATCHES "mingw64/bin")
     248    SET(MINGW64_GCC ON)
     249    MESSAGE(STATUS "MINGW-W64 detected ${CMAKE_CXX_COMPILER}")
     250ENDIF("${CMAKE_CXX_COMPILER}" MATCHES "mingw64/bin")
     251
    247252# check for AMDAPP lib/x86 or lib/x86_64 libOpenCL.so file
    248253IF(HAVE_OPENCL)
    249254    IF((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
    250         CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" OR CMAKE_CL_64) AND NOT BUILD_32BIT)
     255            CMAKE_CL_64 OR MINGW64_GCC) AND NOT BUILD_32BIT)
    251256        IF(EXISTS ${OPENCL_DIST_DIR}/lib/x86_64/libOpenCL.so OR
    252257            EXISTS ${OPENCL_DIST_DIR}/lib/x86_64/OpenCL.lib)
     
    265270            EXISTS ${OPENCL_DIST_DIR}/lib/x86/OpenCL.lib)
    266271    ENDIF((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
    267            CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" OR CMAKE_CL_64) AND NOT BUILD_32BIT)
     272            CMAKE_CL_64 OR MINGW64_GCC) AND NOT BUILD_32BIT)
    268273    IF(HAVE_UBUNTU_GPUPRO)
    269274        IF((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_CL_64) AND NOT BUILD_32BIT)
Note: See TracChangeset for help on using the changeset viewer.