Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 6dc2754

Browse files
committed
Improved CMake MSVC support
1 parent 2f54068 commit 6dc2754

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cmake/cmake-common_logic.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ function(add_source_files var)
100100
source_group("${_l_SOURCE_GROUP}" FILES ${__new_entries})
101101
endif()
102102
if(_l_DEBUG)
103-
message(STATUS "CHILDLIST( result ${_l_LOCATION})")
103+
#message(STATUS "CHILDLIST( result ${_l_LOCATION})")
104104
endif()
105105
CHILDLIST( result ${_l_LOCATION})
106106

107107

108108
foreach( dir IN LISTS result)
109109
if( _l_DEBUG)
110-
add_source_files( ${var} LOCATION "${_l_LOCATION}/${dir}" REGEX ${_l_REGEX} SOURCE_GROUP "${_l_SOURCE_GROUP}${dir}\\")
110+
add_source_files( ${var} LOCATION "${_l_LOCATION}/${dir}" REGEX ${_l_REGEX} SOURCE_GROUP "${_l_SOURCE_GROUP}\\${dir}" DEBUG)
111111
else()
112-
add_source_files( ${var} LOCATION "${_l_LOCATION}/${dir}" REGEX ${_l_REGEX} SOURCE_GROUP "${_l_SOURCE_GROUP}${dir}\\" DEBUG)
112+
add_source_files( ${var} LOCATION "${_l_LOCATION}/${dir}" REGEX ${_l_REGEX} SOURCE_GROUP "${_l_SOURCE_GROUP}\\${dir}")
113113
endif()
114114
endforeach()
115115

projects/libpfc_net/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ message(STATUS "Configuring ${PROJECT_NAME}")
3838
#Scenario Driver
3939

4040
add_source_files(HDRS LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/include/sustain
41-
REGEX "*.h" "*.hpp" SOURCE_GROUP "Headers\\Public\\")
41+
REGEX "*.h" "*.hpp" SOURCE_GROUP "Headers\\Public" DEBUG)
4242
add_source_files(HDRS LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/cpp
43-
REGEX "*.h" "*.hpp" SOURCE_GROUP "Headers\\Private\\")
43+
REGEX "*.h" "*.hpp" SOURCE_GROUP "Headers\\Private")
4444
add_source_files(SRCS LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/cpp
45-
REGEX "*.c" "*.cpp" SOURCE_GROUP "Sources\\")
45+
REGEX "*.c" "*.cpp" SOURCE_GROUP "Sources")
4646

4747

4848
set(${PREFIX}_HEADERS ${HDRS} ${PUBLIC_HDRS} ${GEN_HDRS})

0 commit comments

Comments
 (0)