|
- Timestamp:
-
Aug 22, 2023, 8:48:25 PM (15 months ago)
- Author:
-
gallmei
- Comment:
-
update info about c++17 as default
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v10
|
v11
|
|
17 | 17 | ==== In case of troubles ==== |
18 | 18 | |
19 | | If you get error messages and the compilation fails, please check the output of the command `root-config --cflags`. If you find something like '-std=c++17', then |
20 | | please change line 10 in file |
| 19 | We have changed line 10 in file |
21 | 20 | `GiBUU/libraries/RootTuple/RootTuple-master/src/CMakeLists.txt` |
22 | | from |
23 | | {{{ |
24 | | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") # [GiBUU] |
25 | | }}} |
26 | 21 | to |
27 | 22 | {{{ |
28 | 23 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") # [GiBUU] |
29 | 24 | }}} |
30 | | and do 'make buildRootTuple' again. |
| 25 | since this C standard was needed for the actual ROOT installation. |
| 26 | |
| 27 | If your compiler complaints, please check the output of the command `root-config --cflags`. Maybe you can lower the restrictions for your personal ROOT installation to '-std=c++11'. |
| 28 | |
31 | 29 | |
32 | 30 | == The manual way == |
… |
… |
|
51 | 49 | a. Maybe you have to add in `RootTuple-master/CMakeLists.txt` the line |
52 | 50 | {{{ |
53 | | set (CMAKE_CXX_FLAGS "-std=c++11") |
| 51 | set (CMAKE_CXX_FLAGS "-std=c++17") |
54 | 52 | }}} |
55 | 53 | |
|