View Issue Details

IDProjectCategoryView StatusLast Update
0030456Open CASCADEOCCT:Configurationpublic2020-12-02 17:11
Reporteroan Assigned Toapn  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Target Version7.5.0Fixed in Version7.5.0 
Summary0030456: Make OCCT_CHECK_AND_UNSET_GROUP more general
Descriptionocct_macros.cmake is quite useful for OCCT-based projects.
However, it is impossible to unset group of variables with random ending due to OCCT_CHECK_AND_UNSET_GROUP accepts specific variables only (x_DIR, x_LIBRARY, etc.)

It is suggested to make it more general in order to unset all variables with specified prefix.

This can be done using the following code:
get_cmake_property(VARS VARIABLES)
string (REGEX MATCHALL "(^|;)${GROUP_NAME}[A-Za-z0-9_]*" LOCAL_RESULT "${VARS}")

TagsNo tags attached.
Test case numberNot needed

Activities

git

2019-07-19 16:28

administrator   ~0085796

Branch CR30456 has been created by apn.

SHA-1: 61066a148ee5e8cbd39f21c909dfb900d19c19f2


Detailed log of new commits:

Author: apn
Date: Fri Jul 19 16:25:59 2019 +0300

    0030456: Make OCCT_CHECK_AND_UNSET_GROUP more general
    
    Modify OCCT_CHECK_AND_UNSET_GROUP function to allow unset any group of variables

apn

2019-07-19 17:26

administrator   ~0085808

Dear oan, could you please review occt and products branches CR30456.

Compilation was checked: http://jenkins-test-12.nnov.opencascade.com/view/CR30456-master-APN/

oan

2019-09-18 13:51

developer   ~0087251

Dear Andrey,

Thanks for the update, I will check it using the first moment I will be available.

Regards,
Oleg.

oan

2019-10-04 12:10

developer   ~0087809

Dear Andrey,

It works without visible regressions with OCCT native environment, I have no remarks.

Reviewed.

git

2019-10-23 11:51

administrator   ~0088458

Branch CR30456 has been deleted by kgv.

SHA-1: 61066a148ee5e8cbd39f21c909dfb900d19c19f2

Related Changesets

occt: master 620a6baa

2019-07-19 13:25:59

apn

Details Diff
0030456: Make OCCT_CHECK_AND_UNSET_GROUP more general

Modify OCCT_CHECK_AND_UNSET_GROUP function to allow unset any group of variables
Affected Issues
0030456
mod - adm/cmake/occt_macros.cmake Diff File

Issue History

Date Modified Username Field Change
2019-01-23 13:25 oan New Issue
2019-01-23 13:25 oan Assigned To => bugmaster
2019-01-23 14:54 bugmaster Assigned To bugmaster => apn
2019-07-19 16:28 git Note Added: 0085796
2019-07-19 17:26 apn Test case number => Not needed
2019-07-19 17:26 apn Note Added: 0085808
2019-07-19 17:26 apn Assigned To apn => oan
2019-07-19 17:26 apn Status new => resolved
2019-09-18 13:51 oan Note Added: 0087251
2019-09-25 22:08 abv Target Version 7.4.0 => 7.5.0
2019-10-04 12:10 oan Note Added: 0087809
2019-10-04 12:10 oan Assigned To oan => apn
2019-10-04 12:10 oan Status resolved => reviewed
2019-10-04 18:22 apn Assigned To apn => bugmaster
2019-10-04 19:55 apn Status reviewed => tested
2019-10-23 01:07 apn Changeset attached => occt master 620a6baa
2019-10-23 01:07 apn Assigned To bugmaster => apn
2019-10-23 01:07 apn Status tested => verified
2019-10-23 01:07 apn Resolution open => fixed
2019-10-23 11:51 git Note Added: 0088458
2020-12-02 16:40 emo Fixed in Version => 7.5.0
2020-12-02 17:11 emo Status verified => closed