From 0dec9304126a14939e9e7c4c5d1e673ba4982460 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Thu, 13 Nov 2025 02:23:38 -0500 Subject: [PATCH] c++ --- lua/Polydev/templates.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/Polydev/templates.lua b/lua/Polydev/templates.lua index 5a147a9..d01f967 100644 --- a/lua/Polydev/templates.lua +++ b/lua/Polydev/templates.lua @@ -140,14 +140,14 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project(%s) -include_directories(include) set(SOURCES src/main.cpp ) add_executable(%s ${SOURCES}) -]], project_name, project_name, project_name)) +target_include_directories(%s PRIVATE include) +]], project_name, project_name, project_name, project_name)) local gitignore = { "build/", ".cache/" } utils.init_git(full_project_root, gitignore)