23ba7de5cc
SWDEV-102733 - Update some CMakeLists.txt files: - when setting CMAKE_CXX_FLAGS, append to it rather than overwriting it. - some linker flags, -Wl,--unresolved-symbols=report-all being one of them, requires -shared-libasan if using -fsanitize=address. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#13 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#9 edit ... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#5 edit
14 lines
307 B
CMake
14 lines
307 B
CMake
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
include_directories(${OPENCL_INCLUDE_DIRS})
|
|
|
|
add_definitions(-DHAVE_CL2_HPP)
|
|
|
|
add_executable(clinfo clinfo.cpp)
|
|
|
|
target_link_libraries(clinfo OpenCL)
|
|
|
|
install(TARGETS clinfo DESTINATION bin)
|