You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
540 B
16 lines
540 B
10 years ago
|
function (check_directory_property dir prop)
|
||
|
get_directory_property(gdp_val DIRECTORY "${dir}" "${prop}")
|
||
|
get_property(gp_val
|
||
|
DIRECTORY "${dir}"
|
||
|
PROPERTY "${prop}")
|
||
|
|
||
|
message("get_directory_property: -->${gdp_val}<--")
|
||
|
message("get_property: -->${gp_val}<--")
|
||
|
endfunction ()
|
||
|
|
||
|
set_directory_properties(PROPERTIES empty "" custom value)
|
||
|
|
||
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" empty)
|
||
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" custom)
|
||
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" noexist)
|