Update CMakeLists.txt (#3028)

Fix paths for msvc for parent project
This commit is contained in:
loject 2024-03-03 07:10:18 +07:00 committed by GitHub
parent 69d412b526
commit 5370076dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,8 +301,8 @@ set_target_properties(spdlog PROPERTIES DEBUG_POSTFIX d)
# set source groups for visual studio
if(CMAKE_GENERATOR MATCHES "Visual Studio")
source_group(TREE ${CMAKE_SOURCE_DIR}/include PREFIX include FILES ${SPDLOG_HEADERS})
source_group(TREE ${CMAKE_SOURCE_DIR}/src PREFIX sources FILES ${SPDLOG_SRCS})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include PREFIX include FILES ${SPDLOG_HEADERS})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src PREFIX sources FILES ${SPDLOG_SRCS})
source_group(sources FILES ${VERSION_RC})
endif()