Skip to content

Commit 5a79ba0

Browse files
Set USE_FOLDERS in target_folder.cmake
1 parent d41b693 commit 5a79ba0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
cmake_minimum_required(VERSION 3.23)
22

3-
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
43
set(CMAKE_CXX_STANDARD 17)
54
set(CMAKE_CXX_STANDARD_REQUIRED ON)
65
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")

cmake/target_folder.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2+
13
function(target_folder target folder)
24
set_target_properties("${target}" PROPERTIES FOLDER "${folder}")
35
endfunction()

0 commit comments

Comments
 (0)