From e6d553ce59eaf06c18ce5f6b445620ec5e38e3ab Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 31 Oct 2016 09:36:44 +0100 Subject: [PATCH] Wizards: Explicitly list sources in CMakeLists.txt Task-number: QTCREATORBUG-17196 Change-Id: I478f2f945a6f7ee3183aa09871bccc7e475e5501 Reviewed-by: Tim Jenssen --- .../qtcreator/templates/wizards/projects/plainc/CMakeLists.txt | 3 +-- .../templates/wizards/projects/plaincpp/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/templates/wizards/projects/plainc/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/plainc/CMakeLists.txt index a33d87a2173..f4783c4195d 100644 --- a/share/qtcreator/templates/wizards/projects/plainc/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/plainc/CMakeLists.txt @@ -1,5 +1,4 @@ cmake_minimum_required(VERSION 2.8) project(%{ProjectName}) -aux_source_directory(. SRC_LIST) -add_executable(${PROJECT_NAME} ${SRC_LIST}) +add_executable(${PROJECT_NAME} "%{CFileName}") diff --git a/share/qtcreator/templates/wizards/projects/plaincpp/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/plaincpp/CMakeLists.txt index a33d87a2173..6393118931f 100644 --- a/share/qtcreator/templates/wizards/projects/plaincpp/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/plaincpp/CMakeLists.txt @@ -1,5 +1,4 @@ cmake_minimum_required(VERSION 2.8) project(%{ProjectName}) -aux_source_directory(. SRC_LIST) -add_executable(${PROJECT_NAME} ${SRC_LIST}) +add_executable(${PROJECT_NAME} "%{CppFileName}")