From 366d48379ad4a8e69be700bb51c5d48f205ece9f Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Thu, 10 Jun 2021 17:30:30 -0400 Subject: [PATCH] be explict about config.hpp location --- programs/cleos/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cleos/CMakeLists.txt b/programs/cleos/CMakeLists.txt index 06c74151508..38d46010a1c 100644 --- a/programs/cleos/CMakeLists.txt +++ b/programs/cleos/CMakeLists.txt @@ -1,12 +1,12 @@ configure_file(help_text.cpp.in help_text.cpp @ONLY) -add_executable( ${CLI_CLIENT_EXECUTABLE_NAME} main.cpp httpc.cpp ${CMAKE_CURRENT_BINARY_DIR}/help_text.cpp localize.hpp config.hpp CLI11.hpp) +configure_file(config.hpp.in config.hpp ESCAPE_QUOTES) +add_executable( ${CLI_CLIENT_EXECUTABLE_NAME} main.cpp httpc.cpp "${CMAKE_CURRENT_BINARY_DIR}/help_text.cpp" localize.hpp "${CMAKE_CURRENT_BINARY_DIR}/config.hpp" CLI11.hpp) if( UNIX AND NOT APPLE ) set(rt_library rt ) endif() set(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) set(LOCALEDOMAIN ${CLI_CLIENT_EXECUTABLE_NAME}) -configure_file(config.hpp.in config.hpp ESCAPE_QUOTES) target_include_directories(${CLI_CLIENT_EXECUTABLE_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})