From fa5e4216a8c5f1bb7ea14a91ef1b10d8cfa085fe Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 22 Oct 2023 14:49:21 -0400 Subject: [PATCH] globally-unique cmake target names for submodule build --- CMakeLists.txt | 2 +- example/ex1/CMakeLists.txt | 4 ++-- example/ex2/CMakeLists.txt | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f68effb..8506e5b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,4 +65,4 @@ xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets # ---------------------------------------------------------------- # install additional components -install(TARGETS ex1 DESTINATION bin/randomgen/example) +install(TARGETS randomgen_ex1 DESTINATION bin/randomgen/example) diff --git a/example/ex1/CMakeLists.txt b/example/ex1/CMakeLists.txt index a9d1b27d..0c809818 100644 --- a/example/ex1/CMakeLists.txt +++ b/example/ex1/CMakeLists.txt @@ -1,2 +1,2 @@ -add_executable(ex1 ex1.cpp) -xo_include_options2(ex1) +add_executable(randomgen_ex1 ex1.cpp) +xo_include_options2(randomgen_ex1) diff --git a/example/ex2/CMakeLists.txt b/example/ex2/CMakeLists.txt index 78016d45..877fae36 100644 --- a/example/ex2/CMakeLists.txt +++ b/example/ex2/CMakeLists.txt @@ -1,3 +1,3 @@ -add_executable(ex2 ex2.cpp) -xo_include_options2(ex2) -xo_dependency(ex2 indentlog) +add_executable(randomgen_ex2 ex2.cpp) +xo_include_options2(randomgen_ex2) +xo_dependency(randomgen_ex2 indentlog)