Skip to content

Commit 9b7ff9d

Browse files
committed
Fixup a few small details.
Get rid of warnings from boost::placeholders by globally defining BOOST_BIND_GLOBAL_PLACEHOLDERS. Add in a missing #include "InterSpec_config.h" Add in some license statements to files missing. Set range of CMake from 3.1 to 3.20, so that the most recent definitions will be used. Update electron to 17.3.1 Update dependency build instructions for Linux.
1 parent 4874b9a commit 9b7ff9d

File tree

13 files changed

+195
-14
lines changed

13 files changed

+195
-14
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ endif(POLICY CMP0091)
55

66
cmake_policy(SET CMP0048 NEW)
77

8-
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
8+
cmake_minimum_required(VERSION 3.1...3.20 FATAL_ERROR)
99

10-
project(InterSpec VERSION 1.9.1)
10+
project(InterSpec VERSION 1.0.10)
1111

1212
set(CMAKE_CXX_STANDARD 14)
1313
set(CMAKE_CXX_STANDARD_REQUIRED ON)

InterSpec/InterSpec_config.h.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,9 @@ void log_developer_error( const char *location, const char *error );
131131
#define DATE_TIME_FORMAT_STR "dd/MM/yy hh:mm:ss"
132132

133133

134+
// Prevent some compile warnings from using like _1 instead of
135+
// boost::placeholders::_1 (I think this must be in the Wt
136+
// headers, since our code uses the namespace prefixes)
137+
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
138+
134139
#endif // InterSpec_config_h

external_libs/Cuba-3.0/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project(Cuba-3.0)
22
#right now this file only compiles "cuhre" version of the integration routines
3-
cmake_minimum_required( VERSION 3.1 )
3+
cmake_minimum_required( VERSION 3.1...3.20 )
44

55

66

external_libs/Minuit2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_policy(SET CMP0048 NEW)
22
project( minuit2 VERSION 2 )
33

4-
cmake_minimum_required( VERSION 3.1 )
4+
cmake_minimum_required( VERSION 3.1...3.20 )
55

66

77
set ( MINUIT_SRCS

external_libs/muparserx-4.0.7/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_policy(SET CMP0048 NEW)
33
########################################################################
44
# Project setup
55
########################################################################
6-
cmake_minimum_required(VERSION 3.1)
6+
cmake_minimum_required(VERSION 3.1...3.20)
77
project(muparserx VERSION 4.0.7 LANGUAGES CXX)
88

99
########################################################################

src/CompactFileManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
License along with this library; if not, write to the Free Software
2121
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2222
*/
23+
24+
#include "InterSpec_config.h"
25+
2326
#include <sstream>
2427
#include <string>
2528
#include <vector>

src/D3SpectrumDisplayDiv.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/* InterSpec: an application to analyze spectral gamma radiation data.
2+
3+
Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC
4+
(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
5+
Government retains certain rights in this software.
6+
For questions contact William Johnson via email at wcjohns@sandia.gov, or
7+
alternative emails of interspec@sandia.gov.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
23+
124
#include "InterSpec_config.h"
225

326
#include <memory>

src/D3TimeChart.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/* InterSpec: an application to analyze spectral gamma radiation data.
2+
3+
Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC
4+
(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
5+
Government retains certain rights in this software.
6+
For questions contact William Johnson via email at wcjohns@sandia.gov, or
7+
alternative emails of interspec@sandia.gov.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
23+
124
#include "InterSpec_config.h"
225

326
#include <tuple>

src/FluxTool.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/* InterSpec: an application to analyze spectral gamma radiation data.
2+
3+
Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC
4+
(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
5+
Government retains certain rights in this software.
6+
For questions contact William Johnson via email at wcjohns@sandia.gov, or
7+
alternative emails of interspec@sandia.gov.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
23+
124
#define _USE_MATH_DEFINES
225

326
#include "InterSpec_config.h"

target/electron/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Require CMake 3.15 to use MSVC_RUNTIME_LIBRARY
2-
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
2+
cmake_minimum_required(VERSION 3.1...3.20 FATAL_ERROR)
33

44
project( InterSpecAddOn )
55

0 commit comments

Comments
 (0)