Changeset 3888 in CLRX


Ignore:
Timestamp:
Mar 10, 2018, 5:03:02 PM (6 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: Add support for FreeBSD with clang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3633 r3888  
    137137ENDIF(BUILD_32BIT)
    138138
     139# FreeBSD support
     140IF("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
     141    MESSAGE(STATUS "Add -stdlib=libc++ for FreeBSD")
     142    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
     143    SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -stdlib=libc++")
     144    SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -stdlib=libc++")
     145    SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -stdlib=libc++")
     146ENDIF("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
     147
    139148# check system bitness
    140149TRY_COMPILE(HAVE_64BIT "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/Check64Bit.cpp")
Note: See TracChangeset for help on using the changeset viewer.