From fa65c83b65c0d5600c64d243b1c14d270a317b74 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 1 Jan 2019 10:50:49 -0800 Subject: fixes #842 remove the cmake handing for source_group --- src/CMakeLists.txt | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c31539c2..42224109 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -198,25 +198,6 @@ foreach(_PKG IN ITEMS ${NNG_PKGS}) find_package(${_PKG} REQUIRED) endforeach () -# Provide same folder structure in IDE as on disk -# XXX: Consider replacing this with source_group(TREE...) -foreach (f ${NNG_SRCS}) - # Get the path of the file relative to source directory - if (IS_ABSOLUTE "${f}") - file (RELATIVE_PATH f ${CMAKE_CURRENT_SOURCE_DIR} ${f}) - endif () - set (SRC_GROUP "${f}") - set (f "${CMAKE_CURRENT_SOURCE_DIR}/${f}") - - # Remove the filename part - string (REGEX REPLACE "(.*)(/[^/]*)$" "\\1" SRC_GROUP ${SRC_GROUP}) - - # CMake source_group expects \\, not / - string (REPLACE / \\ SRC_GROUP ${SRC_GROUP}) - source_group ("${SRC_GROUP}" FILES ${f}) -endforeach () - - # Library add_library (${PROJECT_NAME} ${NNG_SRCS}) -- cgit v1.2.3-70-g09d2