diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-01-01 10:50:49 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-01-01 10:50:49 -0800 |
| commit | fa65c83b65c0d5600c64d243b1c14d270a317b74 (patch) | |
| tree | cc6becda6bab10befde27fb8ad1c38896f7cc5a3 | |
| parent | a73ff5363eae228009413872b05aff758a46c5ca (diff) | |
| download | nng-fa65c83b65c0d5600c64d243b1c14d270a317b74.tar.gz nng-fa65c83b65c0d5600c64d243b1c14d270a317b74.tar.bz2 nng-fa65c83b65c0d5600c64d243b1c14d270a317b74.zip | |
fixes #842 remove the cmake handing for source_group
| -rw-r--r-- | src/CMakeLists.txt | 19 |
1 files changed, 0 insertions, 19 deletions
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}) |
