File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ if(WIN32)
29
29
endif ()
30
30
31
31
32
+ # Release channel #############################################################
33
+ #
34
+ set (openPMD_RELEASE_CHANNEL "source"
35
+ CACHE STRING "Describes the method openPMD-api was installed with." )
36
+
37
+
32
38
# Options and Variants ########################################################
33
39
#
34
40
function (openpmd_option name description default)
@@ -271,6 +277,9 @@ set(IO_ADIOS1_SOURCE
271
277
add_library (openPMD ${CORE_SOURCE} ${IO_SOURCE} )
272
278
add_library (openPMD::openPMD ALIAS openPMD)
273
279
280
+ # release channel
281
+ target_compile_definitions (openPMD PUBLIC "-DOPENPMD_RELEASE_CHANNEL=${OPENPMD_RELEASE_CHANNEL} " )
282
+
274
283
# properties
275
284
target_compile_features (openPMD
276
285
PUBLIC cxx_std_11
@@ -832,6 +841,7 @@ message("")
832
841
message ("openPMD build configuration:" )
833
842
message (" library Version: ${openPMD_VERSION} " )
834
843
message (" openPMD Standard: ${openPMD_STANDARD_VERSION} " )
844
+ message (" release channel: ${openPMD_RELEASE_CHANNEL} " )
835
845
message (" C++ Compiler: ${CMAKE_CXX_COMPILER_ID} "
836
846
"${CMAKE_CXX_COMPILER_VERSION} "
837
847
"${CMAKE_CXX_COMPILER_WRAPPER} " )
Original file line number Diff line number Diff line change 35
35
#define OPENPMD_STANDARD_MIN_MAJOR 1
36
36
#define OPENPMD_STANDARD_MIN_MINOR 0
37
37
#define OPENPMD_STANDARD_MIN_PATCH 0
38
+
39
+ // release channel
40
+ #if !defined(OPENPMD_RELEASE_CHANNEL)
41
+ # define OPENPMD_RELEASE_CHANNEL " source"
42
+ #endif
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ include(CMakeFindDependencyMacro)
4
4
5
5
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /Modules" )
6
6
7
+ set (openPMD_RELEASE_CHANNEL @openPMD_RELEASE_CHANNEL@)
8
+
7
9
set (openPMD_HAVE_MPI @openPMD_HAVE_MPI@)
8
10
if (openPMD_HAVE_MPI)
9
11
find_dependency(MPI)
You can’t perform that action at this time.
0 commit comments