Skip to content

Commit

Permalink
cmake: create folder hierarchy only for Xcode or Visual Studio genera…
Browse files Browse the repository at this point in the history
…tors
  • Loading branch information
scribam authored and flyinghead committed Nov 18, 2023
1 parent c4c4c2f commit 3303ecb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1799,5 +1799,7 @@ if(UNIX AND NOT APPLE AND NOT ANDROID AND NOT LIBRETRO)
endforeach()
endif()

file(GLOB_RECURSE SRC_FILES *.h *.cpp *.c *.cc *.mm)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SRC_FILES})
if(${CMAKE_GENERATOR} MATCHES "^Xcode.*|^Visual Studio.*")
file(GLOB_RECURSE SRC_FILES *.h *.cpp *.c *.cc *.mm)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SRC_FILES})
endif()

0 comments on commit 3303ecb

Please sign in to comment.