>From Daniel Gryniewicz <d...@redhat.com>:

Daniel Gryniewicz has uploaded this change for review. ( 
https://review.gerrithub.io/404945


Change subject: Add new CMake option code
......................................................................

Add new CMake option code

CMake options were either on or off, and no way to tell if they were
using the default value or if they were specified on the command line.
This made it extremely difficult to error out if something was specified
on the command line but the dependencies were not installed.

Add a new pair of macros for option processing:
- goption() is a replacement for option(), and it records the default
  value specially
- gopt_check() should be called before using the option, and it
  determins whether or not the default was used, and sets <foo>_REQUIRED
  as a result.  This can be used to error out if the option was given on
  the command line.

Most options are converted to this new API.

Change-Id: I83609375ddc27648bc6eb2bb9fe73848f571a309
Signed-off-by: Daniel Gryniewicz <d...@redhat.com>
---
M src/CMakeLists.txt
A src/cmake/goption.cmake
R src/cmake/modules/FindCEPHFS.cmake
M src/cmake/modules/FindWBclient.cmake
M src/test/CMakeLists.txt
5 files changed, 285 insertions(+), 147 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/45/404945/1
--
To view, visit https://review.gerrithub.io/404945
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I83609375ddc27648bc6eb2bb9fe73848f571a309
Gerrit-Change-Number: 404945
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Gryniewicz <d...@redhat.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to