Project

General

Profile

Change request #716

Change the way features are detected

Added by David Demelier over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
cmake
Target version:
Start date:
10/20/2017
Due date:
% Done:

100%

Estimated time:
1.00 h
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

The current CMake process is to define options, check if they are applicable and set/unset depending on the system availability. This leads to issues like:

  1. User runs CMake
  2. User sees that SSL support is disabled
  3. User install OpenSSL
  4. User re-run CMake

Problem: now the option of SSL is still deactivated because it has been forced off by CMake as cache variable.

Use the DefineOption and check the availability of features before settings options.

Associated revisions

Revision 512:d0893ea1f50b (diff)
Added by David Demelier over 1 year ago

CMake: split options and conditions, closes #716

As described in the issue, the CMake process force off a cache variable
when a condition is not met. If the user installs the requirements and
re-run CMake it must also set the variable to on which is inconvenient.
The new process is to add a secondary variable and do not touch user
defined options.

History

#1

Updated by David Demelier over 1 year ago

  • Description updated (diff)
#2

Updated by David Demelier over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#3

Updated by David Demelier over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF