File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ add_versioned_package("gh:intel/cpp-baremetal-concurrency#7c5b26c")
28
28
add_versioned_package("gh:intel/cpp-std-extensions#4d57b2e" )
29
29
add_versioned_package("gh:intel/cpp-baremetal-senders-and-receivers#73d95bc" )
30
30
31
+ set (GEN_STR_CATALOG
32
+ ${CMAKE_CURRENT_LIST_DIR} /tools/gen_str_catalog.py
33
+ CACHE FILEPATH "Location of script to generate a string catalog" )
34
+
31
35
add_library (cib_sc INTERFACE )
32
36
target_compile_features (cib_sc INTERFACE cxx_std_20)
33
37
target_link_libraries_system(cib_sc INTERFACE fmt::fmt-header-only stdx)
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ function(gen_str_catalog)
63
63
if (SC_GUID_MASK)
64
64
set (GUID_MASK_ARG --guid_mask ${SC_GUID_MASK} )
65
65
endif ()
66
+ if (NOT SC_GEN_STR_CATALOG)
67
+ set (SC_GEN_STR_CATALOG ${GEN_STR_CATALOG} )
68
+ endif ()
66
69
67
70
add_custom_command (
68
71
OUTPUT ${SC_OUTPUT_CPP} ${SC_OUTPUT_JSON} ${SC_OUTPUT_XML}
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ target_include_directories(catalog2_lib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
9
9
target_link_libraries (catalog1_lib PRIVATE warnings cib)
10
10
target_link_libraries (catalog2_lib PRIVATE warnings cib)
11
11
gen_str_catalog(
12
- GEN_STR_CATALOG
13
- ${CMAKE_SOURCE_DIR} /tools/gen_str_catalog.py
14
12
OUTPUT_CPP
15
13
${CMAKE_CURRENT_BINARY_DIR} /strings .cpp
16
14
OUTPUT_JSON
You can’t perform that action at this time.
0 commit comments