Skip to content

Commit 250c2ea

Browse files
committed
scripted-diff: s/Libmultiprocess_EXTERNAL_MPGEN/MPGEN_EXECUTABLE/g
Discussed #147 (comment) -BEGIN VERIFY SCRIPT- git grep -l Libmultiprocess_EXTERNAL_MPGEN | xargs sed -i s/Libmultiprocess_EXTERNAL_MPGEN/MPGEN_EXECUTABLE/g -END VERIFY SCRIPT-
1 parent 9558ceb commit 250c2ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if(Libmultiprocess_ENABLE_CLANG_TIDY)
2424
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE}")
2525
endif()
2626

27-
set(Libmultiprocess_EXTERNAL_MPGEN "" CACHE FILEPATH "If specified, should be full path to an external mpgen binary to use rather than the one built internally.")
27+
set(MPGEN_EXECUTABLE "" CACHE FILEPATH "If specified, should be full path to an external mpgen binary to use rather than the one built internally.")
2828

2929
include("cmake/compat_config.cmake")
3030
include("cmake/pthread_checks.cmake")

cmake/TargetCapnpSources.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ function(target_capnp_sources target include_prefix)
6161
)
6262

6363
set(MPGEN_BINARY "")
64-
if(Libmultiprocess_EXTERNAL_MPGEN)
65-
set(MPGEN_BINARY "${Libmultiprocess_EXTERNAL_MPGEN}")
64+
if(MPGEN_EXECUTABLE)
65+
set(MPGEN_BINARY "${MPGEN_EXECUTABLE}")
6666
if(NOT EXISTS "${MPGEN_BINARY}")
67-
message(FATAL_ERROR "Libmultiprocess_EXTERNAL_MPGEN: \"${MPGEN_BINARY}\" does not exist.")
67+
message(FATAL_ERROR "MPGEN_EXECUTABLE: \"${MPGEN_BINARY}\" does not exist.")
6868
endif()
6969
elseif(TARGET Libmultiprocess::multiprocess)
7070
set(MPGEN_BINARY Libmultiprocess::mpgen)
7171
else()
72-
message(FATAL_ERROR "No usable mpgen. Set Libmultiprocess_EXTERNAL_MPGEN or enable the internal target.")
72+
message(FATAL_ERROR "No usable mpgen. Set MPGEN_EXECUTABLE or enable the internal target.")
7373
endif()
7474

7575
set(generated_headers "")

0 commit comments

Comments
 (0)