SHARE
TWEET

Untitled

a guest Mar 25th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include(CMakePrintHelpers)
  2.  
  3. set(WITH_EXAMPLE_FOO foo)
  4. set(WITH_EXAMPLE_BAR bar)
  5. set(VARIABLES WITH_EXAMPLE_FOO WITH_EXAMPLE_BAR)
  6.    
  7. foreach(var ${VARIABLES})
  8.     cmake_print_variables(${var})
  9.     if(var MATCHES ^WITH_EXAMPLE_[a-zA-Z])
  10.         message(STATUS "Found example : ${var}")
  11.     endif()
  12. endforeach()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top