Skip to content

Commit

Permalink
cmake added debug function for BOOL values
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 25, 2024
1 parent ce51027 commit 92382ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmake/CommonModules/CsDebug.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,14 @@ endfunction()
function(pn variable)
message(NOTICE "${variable} : ${${variable}}")
endfunction()

# Print clearly visible notice message about passed BOOL variable
function(pb variable)
if(NOT DEFINED ${variable})
message("|||-- ${variable} : ${variable}-NOTFOUND")
elseif(${variable})
message("|||-- ${variable} : ON")
else()
message("|||-- ${variable} : OFF")
endif()
endfunction()

0 comments on commit 92382ca

Please sign in to comment.