View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028027 | Open CASCADE | OCCT:Configuration | public | 2016-10-28 22:12 | 2016-12-09 16:39 |
Reporter | kgv | Assigned To | apn | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.1.0 | ||||
Target Version | 7.1.0 | Fixed in Version | 7.1.0 | ||
Summary | 0028027: Configuration - option BUILD_RESOURCES does not work on CMake 2.8 | ||||
Description | New CMake option BUILD_RESOURCES added in scope 0027258 does not work with CMake 2.8:CMake Error at adm/cmake/occt_resources.cmake:51 (string): string does not recognize sub-command APPEND Call Stack (most recent call first): adm/cmake/occt_resources.cmake:76 (OCCT_GENERATE_CONTENT_ONLY) CMakeLists.txt:12 (include) CMakeLists.txt:292 (OCCT_INCLUDE_CMAKE_FILE) Since this option is not mandatory, it is not critical to make it compatible with old CMake (if it is complicated), but probably comment should be added specifying minimal required version. | ||||
Steps To Reproduce | In CMake GUI/console application: • Set option BUILD_RESOURCES ON • Try to configure/generate occt via CMake 2.8.12 (it is minimum required version of CMake) Result: no warning/error appears Repeat same steps for some new version of CMake -> no warning/error appears | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
Branch CR28027 has been created by ski. SHA-1: 63d70c6bbb09191fe96e587462052f22ee26b7b0 Detailed log of new commits: Author: ski Date: Mon Oct 31 11:54:54 2016 +0300 0028027: Configuration - option BUILD_RESOURCES does not work on CMake 2.8 CMake command "string (APPEND ...)" was replaced by SET equivalent to support CMake 2.8 |
|
Dear ibs, i have replaced command "string (APPEND ...)" by "SET (...)" equivalent to support CMake 2.8.12. Configuration was checked on my local station using CMake 2.8.12 and 3.5.2. Please, review. |
|
set (OCCT_HEADER_FILE_CONTENT) - string (APPEND OCCT_HEADER_FILE_CONTENT "// This file has been automatically generated from resource file src/${CurrentResource_Directory}/${RESOURCE_FILE}\n\n") + set (OCCT_HEADER_FILE_CONTENT "${OCCT_HEADER_FILE_CONTENT}// This file has been automatically generated from resource file src/${CurrentResource_Directory}/${RESOURCE_FILE}\n\n" I think theses two lines can be merged. |
|
String "set (OCCT_HEADER_FILE_CONTENT)" is necessary for cleaning of variable OCCT_HEADER_FILE_CONTENT between generation of different resource header files. |
|
So, the following initialization will not work as expected?set (OCCT_HEADER_FILE_CONTENT "// This file has been automatically generated from resource file src/${CurrentResource_Directory}/${RESOURCE_FILE}\n\n" |
|
Branch CR28027 has been updated forcibly by ski. SHA-1: 3cc0e90d3513e2fdd439b51854f400299baf17a6 |
|
I have updated branch CR28027 due to remarks. |
|
there are no remarks |
|
Branch CR28027 has been updated forcibly by apn. SHA-1: a42c4c6721e60f996151877bb64395f4e39f1c2c |
|
Branch CR28027 has been deleted by kgv. SHA-1: a42c4c6721e60f996151877bb64395f4e39f1c2c |
occt: master b2134621 2016-10-31 08:54:54
Committer: apn Details Diff |
0028027: Configuration - option BUILD_RESOURCES does not work on CMake 2.8 CMake command "string (APPEND ...)" was replaced by SET equivalent to support CMake 2.8 |
Affected Issues 0028027 |
|
mod - adm/cmake/occt_resources.cmake | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-10-28 22:12 | kgv | New Issue | |
2016-10-28 22:12 | kgv | Assigned To | => ski |
2016-10-28 22:12 | kgv | Relationship added | child of 0027258 |
2016-10-31 11:55 | git | Note Added: 0059625 | |
2016-10-31 11:55 |
|
Status | new => assigned |
2016-10-31 12:27 |
|
Note Added: 0059628 | |
2016-10-31 12:27 |
|
Assigned To | ski => ibs |
2016-10-31 12:27 |
|
Status | assigned => resolved |
2016-10-31 12:27 |
|
Steps to Reproduce Updated | |
2016-10-31 12:30 | kgv | Note Added: 0059629 | |
2016-10-31 12:34 |
|
Note Added: 0059630 | |
2016-10-31 12:39 | kgv | Note Added: 0059631 | |
2016-10-31 12:41 | git | Note Added: 0059632 | |
2016-10-31 12:42 |
|
Note Added: 0059633 | |
2016-11-01 11:35 |
|
Note Added: 0059674 | |
2016-11-01 11:35 |
|
Assigned To | ibs => bugmaster |
2016-11-01 11:35 |
|
Status | resolved => reviewed |
2016-11-07 15:51 | git | Note Added: 0059942 | |
2016-11-07 16:10 | apn | Test case number | => Not needed |
2016-11-07 16:10 | apn | Status | reviewed => tested |
2016-11-09 17:43 | apn | Changeset attached | => occt master b2134621 |
2016-11-09 17:43 | apn | Assigned To | bugmaster => apn |
2016-11-09 17:43 | apn | Status | tested => verified |
2016-11-09 17:43 | apn | Resolution | open => fixed |
2016-12-07 11:30 | git | Note Added: 0061255 | |
2016-12-09 16:30 |
|
Status | verified => closed |
2016-12-09 16:39 |
|
Fixed in Version | => 7.1.0 |