properly name cached variables
This commit is contained in:
parent
c4dcd7203d
commit
a0c27643f2
|
@ -1,9 +1,10 @@
|
||||||
find_program(_CLANG_FORMAT clang-format)
|
find_program(clang-format_EXECUTABLE clang-format)
|
||||||
|
mark_as_advanced(clang-format_EXECUTABLE)
|
||||||
|
|
||||||
if(_CLANG_FORMAT)
|
if(clang-format_EXECUTABLE)
|
||||||
add_executable(clang-format IMPORTED)
|
add_executable(clang-format IMPORTED)
|
||||||
set_target_properties(clang-format PROPERTIES
|
set_target_properties(clang-format PROPERTIES
|
||||||
IMPORTED_LOCATION ${_CLANG_FORMAT})
|
IMPORTED_LOCATION ${clang-format_EXECUTABLE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
unset(_CLANG_FORMAT)
|
unset(_CLANG_FORMAT)
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
find_program(_MAKEHEADERS makeheaders)
|
find_program(makeheaders_EXECUTABLE makeheaders)
|
||||||
|
mark_as_advanced(makeheaders_EXECUTABLE)
|
||||||
|
|
||||||
if(_MAKEHEADERS)
|
if(makeheaders_EXECUTABLE)
|
||||||
add_executable(makeheaders IMPORTED)
|
add_executable(makeheaders IMPORTED)
|
||||||
set_target_properties(makeheaders PROPERTIES
|
set_target_properties(makeheaders PROPERTIES
|
||||||
IMPORTED_LOCATION ${_MAKEHEADERS})
|
IMPORTED_LOCATION ${makeheaders_EXECUTABLE})
|
||||||
else()
|
else()
|
||||||
add_executable(makeheaders ${CMAKE_CURRENT_LIST_DIR}/makeheaders.c)
|
add_executable(makeheaders ${CMAKE_CURRENT_LIST_DIR}/makeheaders.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue