mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Print CMake entities' properties in human-readable form for debugging. Issue: #27513
27 lines
513 B
CMake
27 lines
513 B
CMake
enable_language(C)
|
|
|
|
set_property(SOURCE nothing.c PROPERTY LANGUAGE C)
|
|
set_property(SOURCE something.c PROPERTY
|
|
COMPILE_DEFINITIONS SOMETHING=1)
|
|
|
|
add_library(nothing STATIC nothing.c nothing.h)
|
|
|
|
add_executable(something something.c something.h)
|
|
target_link_libraries(something PUBLIC nothing)
|
|
|
|
cmake_language(
|
|
PRINT_PROPERTIES
|
|
TARGETS nothing something
|
|
NAMED
|
|
LINKER_LANGUAGE
|
|
TYPE
|
|
)
|
|
|
|
cmake_language(
|
|
PRINT_PROPERTIES
|
|
SOURCES nothing.c something.c
|
|
NAMED
|
|
COMPILE_DEFINITIONS
|
|
LANGUAGE
|
|
)
|