Skip to content

Commit

Permalink
Fix build issue with CMake-converted file.
Browse files Browse the repository at this point in the history
I was getting an "already defined" (or double inclusion) error.
  • Loading branch information
krazkidd committed Jul 30, 2024
1 parent 3738581 commit eed1a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/app_config.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#ifndef APP_CONFIG_HPP
#define APP_CONFIG_HPP

// NOTE: This file only exists to prevent IDE errors. However, it
// may interfere with the build process. If you encounter
// any issues, please ensure that CMake's generated
Expand All @@ -13,5 +10,3 @@
// ${CMAKE_SOURCE_DIR}/include

#include "app_config.hpp.in"

#endif
5 changes: 5 additions & 0 deletions include/app_config.hpp.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef APP_CONFIG_HPP
#define APP_CONFIG_HPP

#include <string_view>

namespace kdeck
Expand All @@ -11,3 +14,5 @@ namespace kdeck

constexpr std::string_view kSslTrustStoreDir{"@SSL_TRUST_STORE_DIR@"};
}

#endif

0 comments on commit eed1a08

Please sign in to comment.