Open t-sakashita opened 4 years ago
message(CHECK_START "Finding my things") list(APPEND CMAKE_MESSAGE_INDENT " ") unset(missingComponents) message(CHECK_START "Finding partA") # ... do check, assume we find A message(CHECK_PASS "found") message(CHECK_START "Finding partB") # ... do check, assume we don't find B list(APPEND missingComponents B) message(CHECK_FAIL "not found") list(POP_BACK CMAKE_MESSAGE_INDENT) if(missingComponents) message(CHECK_FAIL "missing components: ${missingComponents}") else() message(CHECK_PASS "all components found") endif()
https://cmake.org/cmake/help/v3.17/command/message.html#reporting-checks
最新のv3.17で実装されたばかりの機能なので、まだ使用できない。
https://cmake.org/cmake/help/v3.17/command/message.html#reporting-checks
最新のv3.17で実装されたばかりの機能なので、まだ使用できない。