From 5370076dcc1285cbb8b4c52d1d0b738793080206 Mon Sep 17 00:00:00 2001 From: loject Date: Sun, 3 Mar 2024 07:10:18 +0700 Subject: [PATCH] Update CMakeLists.txt (#3028) Fix paths for msvc for parent project --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0fc42487..c4e3d17e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()