File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ elseif( CMAKE_COMPILER_IS_GNUCXX )
210210 set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
211211 set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage" )
212212 endif ()
213- else ( )
214- message ( FATAL_ERROR "Compiler not supported or not detected " )
213+ # elseif( APPLE )
214+ # set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS} " )
215215endif ( )
216216
217217# If UNICODE is defined for microsoft compilers, pass extra definitions
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ set_target_properties( StatTimer PROPERTIES SOVERSION ${CLFFT_SOVERSION} )
6969set_target_properties ( StatTimer PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR} /staging" )
7070target_link_libraries ( StatTimer ${OPENCL_LIBRARIES} )
7171
72- if ( UNIX )
72+ if ( UNIX AND NOT APPLE )
7373 # This library dependency is brought in by the high precision timer available in linux
7474 target_link_libraries ( StatTimer -lrt )
7575endif ( )
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ if( MINGW )
5757elseif ( CMAKE_COMPILER_IS_GNUCXX )
5858 set ( CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} " )
5959 set ( LD_PTHREAD "-lpthread" )
60+ elseif ( APPLE )
61+ set ( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS} " )
62+ # set( CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}" )
63+ add_definitions ( -DGTEST_USE_OWN_TR1_TUPLE )
6064endif ( )
6165
6266# Include standard OpenCL headers
You can’t perform that action at this time.
0 commit comments