Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/CMakeLists.txt
| Show First 20 Lines • Show All 565 Lines • ▼ Show 20 Lines | |||||
| data_to_c( | data_to_c( | ||||
| ${CMAKE_CURRENT_SOURCE_DIR}/operations/COM_OpenCLKernels.cl | ${CMAKE_CURRENT_SOURCE_DIR}/operations/COM_OpenCLKernels.cl | ||||
| ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h | ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h | ||||
| SRC | SRC | ||||
| ) | ) | ||||
| add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS) | add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS) | ||||
| if((CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "GNU")) | |||||
| add_definitions(-Wsuggest-override) | |||||
ankitm: Suggest `target_compile_options` as it's the intended function, and also to clarify that it's a… | |||||
| endif() | |||||
| set(GENSRC_DIR ${CMAKE_CURRENT_BINARY_DIR}/operations) | set(GENSRC_DIR ${CMAKE_CURRENT_BINARY_DIR}/operations) | ||||
| set(GENSRC ${GENSRC_DIR}/COM_SMAAAreaTexture.h) | set(GENSRC ${GENSRC_DIR}/COM_SMAAAreaTexture.h) | ||||
| add_custom_command( | add_custom_command( | ||||
| OUTPUT ${GENSRC} | OUTPUT ${GENSRC} | ||||
| COMMAND ${CMAKE_COMMAND} -E make_directory ${GENSRC_DIR} | COMMAND ${CMAKE_COMMAND} -E make_directory ${GENSRC_DIR} | ||||
| COMMAND "$<TARGET_FILE:smaa_areatex>" ${GENSRC} | COMMAND "$<TARGET_FILE:smaa_areatex>" ${GENSRC} | ||||
| DEPENDS smaa_areatex | DEPENDS smaa_areatex | ||||
| ) | ) | ||||
| Show All 29 Lines | |||||
Suggest target_compile_options as it's the intended function, and also to clarify that it's a warning for bf_compositor, instead of all targets under this directory (add_compile_options in that case). example: rBfced6f19be49de9024de2c0fa657f1849dfb54a8