Files
rocm-systems/opencl/tools/clinfo/CMakeLists.txt
T
foreman 23ba7de5cc P4 to Git Change 1518310 by msearles@zuni-1666 on 2018/02/22 13:02:34
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
2018-02-22 13:07:08 -05:00

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)