mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
Closes: https://bugs.gentoo.org/812185 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
22 lines
933 B
Diff
22 lines
933 B
Diff
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
|
|
index f3eaa054..4eaff3d1 100644
|
|
--- a/tools/CMakeLists.txt
|
|
+++ b/tools/CMakeLists.txt
|
|
@@ -1,12 +1,13 @@
|
|
-if(TARGET cxxopts) # we only build the tools if cxxopts is available
|
|
+if(SIMDJSON_TOOLS)
|
|
message(STATUS "We have cxxopts as a dependency and we are building the tools (e.g., json2json).")
|
|
- foreach(tool IN ITEMS json2json jsonstats jsonpointer minify)
|
|
+ foreach(tool IN ITEMS json2json jsonstats simdjsonpointer minify)
|
|
add_executable("${tool}" "${tool}.cpp")
|
|
simdjson_apply_props("${tool}")
|
|
target_link_libraries(
|
|
"${tool}" PRIVATE
|
|
- simdjson simdjson-internal-flags simdjson-windows-headers cxxopts
|
|
+ simdjson simdjson-internal-flags simdjson-windows-headers
|
|
)
|
|
+ install(TARGETS "${tool}")
|
|
endforeach()
|
|
else()
|
|
message(STATUS "We are missing cxxopts as a dependency so the tools (e.g., json2json) are omitted.")
|