From 7a68eebb03b5f61593195b823e1349804f0fbd70 Mon Sep 17 00:00:00 2001 From: Norbert Federa Date: Wed, 15 Jun 2016 13:54:31 +0200 Subject: [PATCH] cmake: remove some void statements and fix winpr source group --- client/common/CMakeLists.txt | 3 --- winpr/libwinpr/CMakeLists.txt | 2 ++ winpr/libwinpr/library/test/TestLibraryA/CMakeLists.txt | 4 ---- winpr/libwinpr/library/test/TestLibraryB/CMakeLists.txt | 4 ---- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/client/common/CMakeLists.txt b/client/common/CMakeLists.txt index c9dacbc71..bf4480942 100644 --- a/client/common/CMakeLists.txt +++ b/client/common/CMakeLists.txt @@ -38,9 +38,6 @@ foreach(FREERDP_CHANNELS_CLIENT_SRC ${FREERDP_CHANNELS_CLIENT_SRCS}) set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} "${FREERDP_CHANNELS_CLIENT_SRC}") endforeach() -if(MSVC) - set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS}) -endif() # On windows create dll version information. # Vendor, product and year are already set in top level CMakeLists.txt diff --git a/winpr/libwinpr/CMakeLists.txt b/winpr/libwinpr/CMakeLists.txt index 91db017ca..7e8fcc5e1 100644 --- a/winpr/libwinpr/CMakeLists.txt +++ b/winpr/libwinpr/CMakeLists.txt @@ -84,6 +84,7 @@ set(WINPR_CORE synch locale library file comm pipe interlocked security foreach(DIR ${WINPR_CORE}) add_subdirectory(${DIR}) + source_group("${DIR}" REGULAR_EXPRESSION "${DIR}/.*\\.[ch]") endforeach() set(WINPR_LEVEL2 winsock sspi winhttp asn1 sspicli crt bcrypt rpc credui @@ -91,6 +92,7 @@ set(WINPR_LEVEL2 winsock sspi winhttp asn1 sspicli crt bcrypt rpc credui foreach(DIR ${WINPR_LEVEL2}) add_subdirectory(${DIR}) + source_group("${DIR}" REGULAR_EXPRESSION "${DIR}/.*\\.[ch]") endforeach() set(MODULE_NAME winpr) diff --git a/winpr/libwinpr/library/test/TestLibraryA/CMakeLists.txt b/winpr/libwinpr/library/test/TestLibraryA/CMakeLists.txt index d67d2b356..73d8b7e0c 100644 --- a/winpr/libwinpr/library/test/TestLibraryA/CMakeLists.txt +++ b/winpr/libwinpr/library/test/TestLibraryA/CMakeLists.txt @@ -20,10 +20,6 @@ set(MODULE_PREFIX "TEST_LIBRARY_A") set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} TestLibraryA.c) -if(MSVC) - set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS}) -endif() - add_library(${MODULE_NAME} SHARED ${${MODULE_PREFIX}_SRCS}) set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "") diff --git a/winpr/libwinpr/library/test/TestLibraryB/CMakeLists.txt b/winpr/libwinpr/library/test/TestLibraryB/CMakeLists.txt index 749190163..860df8c7d 100644 --- a/winpr/libwinpr/library/test/TestLibraryB/CMakeLists.txt +++ b/winpr/libwinpr/library/test/TestLibraryB/CMakeLists.txt @@ -20,10 +20,6 @@ set(MODULE_PREFIX "TEST_LIBRARY_B") set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} TestLibraryB.c) -if(MSVC) - set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS}) -endif() - add_library(${MODULE_NAME} SHARED ${${MODULE_PREFIX}_SRCS}) set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")