From a85032e5fbd14987c01d21b8ce2f64b6954950e2 Mon Sep 17 00:00:00 2001 From: Brian Heim Date: Fri, 10 Apr 2020 14:17:56 -0500 Subject: [PATCH] cmake: fix ninja toolchain When CMake is run with ninja as the generator, duplicate target names are generated that cause configuration to fail. This commit fixes that by adding a "compile_" prefix to each of the byte-compiled target names, eliminating the naming collision. --- el/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/el/CMakeLists.txt b/el/CMakeLists.txt index 7dc8a9e..d7288af 100644 --- a/el/CMakeLists.txt +++ b/el/CMakeLists.txt @@ -33,7 +33,7 @@ if (SC_EL_BYTECOMPILE) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Creating byte-compiled Emacs lisp ${CMAKE_CURRENT_BINARY_DIR}/${el}c") - add_custom_target(${el}c ALL + add_custom_target(compile_${el}c ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el}c) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${el}c