summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-02-04 11:34:34 -0500
committerBen Boeckel <mathstuf@gmail.com>2015-02-07 20:51:05 -0500
commit6f9408efe3bfe1fd8db54cb8537412d8bd95d969 (patch)
tree77c6199cdbe41eb9b8f10aca3bd4d65bb81f75e4 /src
parent1aefd69e9875d18829981663e6bf3ceca9c72ede (diff)
downloadcoreclr-6f9408efe3bfe1fd8db54cb8537412d8bd95d969.tar.gz
coreclr-6f9408efe3bfe1fd8db54cb8537412d8bd95d969.tar.bz2
coreclr-6f9408efe3bfe1fd8db54cb8537412d8bd95d969.zip
Remove excess arguments to endfunction() and else()
Arguments to else() are always confusing and endfunction only needs to match the first argument.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/coreclr/hosts/coreconsole/CMakeLists.txt2
-rw-r--r--src/coreclr/hosts/corerun/CMakeLists.txt2
-rw-r--r--src/debug/daccess/CMakeLists.txt2
-rw-r--r--src/debug/ee/CMakeLists.txt2
-rw-r--r--src/debug/ee/wks/CMakeLists.txt4
-rw-r--r--src/dlls/mscordac/CMakeLists.txt2
-rw-r--r--src/dlls/mscoree/CMakeLists.txt2
-rw-r--r--src/dlls/mscoree/coreclr/CMakeLists.txt4
-rw-r--r--src/inc/CMakeLists.txt2
-rw-r--r--src/jit/CMakeLists.txt2
-rw-r--r--src/md/md_dbi.cmake4
-rw-r--r--src/utilcode/dac/CMakeLists.txt2
-rw-r--r--src/utilcode/dyncrt/CMakeLists.txt2
-rw-r--r--src/vm/CMakeLists.txt2
15 files changed, 18 insertions, 18 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 642e66a9ce..6401672e54 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories("classlibnative/inc")
if(WIN32)
enable_language(ASM_MASM)
-else(WIN32)
+else()
enable_language(ASM)
# This prevents inclusion of standard C compiler headers
add_compile_options(-nostdinc)
diff --git a/src/coreclr/hosts/coreconsole/CMakeLists.txt b/src/coreclr/hosts/coreconsole/CMakeLists.txt
index 00b6391f30..8848ff7d1a 100644
--- a/src/coreclr/hosts/coreconsole/CMakeLists.txt
+++ b/src/coreclr/hosts/coreconsole/CMakeLists.txt
@@ -16,7 +16,7 @@ if(CLR_CMAKE_PLATFORM_UNIX)
)
endif(CAN_BE_COMPILED_ON_LINUX)
-else(CLR_CMAKE_PLATFORM_UNIX)
+else()
add_executable(CoreConsole
${CoreConsole_SOURCES}
${CoreConsole_RESOURCES}
diff --git a/src/coreclr/hosts/corerun/CMakeLists.txt b/src/coreclr/hosts/corerun/CMakeLists.txt
index 44426106ac..841a7141d6 100644
--- a/src/coreclr/hosts/corerun/CMakeLists.txt
+++ b/src/coreclr/hosts/corerun/CMakeLists.txt
@@ -16,7 +16,7 @@ if(CLR_CMAKE_PLATFORM_UNIX)
)
endif(CAN_BE_COMPILED_ON_LINUX)
-else(CLR_CMAKE_PLATFORM_UNIX)
+else()
add_executable(CoreRun
${CoreRun_SOURCES}
${CoreRun_RESOURCES}
diff --git a/src/debug/daccess/CMakeLists.txt b/src/debug/daccess/CMakeLists.txt
index 5c012ce13f..0920bd82c1 100644
--- a/src/debug/daccess/CMakeLists.txt
+++ b/src/debug/daccess/CMakeLists.txt
@@ -40,7 +40,7 @@ if(IS_64BIT_BUILD EQUAL 1)
${DACCESS_SOURCES}
amd64/primitives.cpp
)
-else(IS_64BIT_BUILD EQUAL 1)
+else()
set(DACCESS_SOURCES
${DACCESS_SOURCES}
i386/primitives.cpp
diff --git a/src/debug/ee/CMakeLists.txt b/src/debug/ee/CMakeLists.txt
index fff144a5b1..4cbfe4c8e2 100644
--- a/src/debug/ee/CMakeLists.txt
+++ b/src/debug/ee/CMakeLists.txt
@@ -44,7 +44,7 @@ endif(WIN32)
if (IS_64BIT_BUILD EQUAL 1)
set(CORDBEE_SOURCES_WKS ${CORDBEE_SOURCES_WKS} amd64/amd64walker.cpp)
-else (IS_64BIT_BUILD EQUAL 1)
+else ()
set(CORDBEE_SOURCES_WKS ${CORDBEE_SOURCES_WKS} i386/x86walker.cpp)
endif (IS_64BIT_BUILD EQUAL 1)
diff --git a/src/debug/ee/wks/CMakeLists.txt b/src/debug/ee/wks/CMakeLists.txt
index 82b4d7404f..13c575d559 100644
--- a/src/debug/ee/wks/CMakeLists.txt
+++ b/src/debug/ee/wks/CMakeLists.txt
@@ -3,7 +3,7 @@ if (WIN32)
if (IS_64BIT_BUILD EQUAL 1)
FIND_PROGRAM(ASM_COMPILER ml64.exe)
-else (IS_64BIT_BUILD EQUAL 1)
+else ()
FIND_PROGRAM(ASM_COMPILER ml.exe)
endif (IS_64BIT_BUILD EQUAL 1)
@@ -21,7 +21,7 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/dbghelpers.obj PROPERTIE
add_library(cordbee_wks ${CORDBEE_SOURCES_WKS} ${CMAKE_CURRENT_BINARY_DIR}/dbghelpers.obj)
-else (WIN32)
+else ()
add_compile_options(-fPIC)
add_library(cordbee_wks ${CORDBEE_SOURCES_WKS} ../amd64/dbghelpers.S)
diff --git a/src/dlls/mscordac/CMakeLists.txt b/src/dlls/mscordac/CMakeLists.txt
index 4e012058fb..d50ab5d38e 100644
--- a/src/dlls/mscordac/CMakeLists.txt
+++ b/src/dlls/mscordac/CMakeLists.txt
@@ -64,7 +64,7 @@ if(WIN32)
user32.lib
${STATIC_MT_CRT_LIB}
)
-else(WIN32)
+else()
set(COREDAC_LIBRARIES
${COREDAC_LIBRARIES}
palrt
diff --git a/src/dlls/mscoree/CMakeLists.txt b/src/dlls/mscoree/CMakeLists.txt
index b5262d1939..5ed608afc8 100644
--- a/src/dlls/mscoree/CMakeLists.txt
+++ b/src/dlls/mscoree/CMakeLists.txt
@@ -15,7 +15,7 @@ set (DEF_SOURCES
mscorwks_ntdef.src
)
convert_to_absolute_path(DEF_SOURCES ${DEF_SOURCES})
-else(WIN32)
+else()
set(CLR_SOURCES ${CLR_SOURCES}
unixinterface.cpp
)
diff --git a/src/dlls/mscoree/coreclr/CMakeLists.txt b/src/dlls/mscoree/coreclr/CMakeLists.txt
index 8393cbc0dd..2d346b2959 100644
--- a/src/dlls/mscoree/coreclr/CMakeLists.txt
+++ b/src/dlls/mscoree/coreclr/CMakeLists.txt
@@ -9,7 +9,7 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /ENTRY:CoreDllMain")
set(START_LIBRARY_GROUP)
set(END_LIBRARY_GROUP)
-else(WIN32)
+else()
add_definitions(-DNO_CRT_INIT)
@@ -77,7 +77,7 @@ if(WIN32)
crypt32.lib
RuntimeObject.lib
)
-else(WIN32)
+else()
set(CORECLR_LIBRARIES
${CORECLR_LIBRARIES}
CoreClrPal
diff --git a/src/inc/CMakeLists.txt b/src/inc/CMakeLists.txt
index cdfa7a2dea..e8f52de6d1 100644
--- a/src/inc/CMakeLists.txt
+++ b/src/inc/CMakeLists.txt
@@ -47,7 +47,7 @@ set_source_files_properties(${CORGUIDS_SOURCES}
# Compile *_i.c as C files
add_compile_options(/TC)
-else(WIN32)
+else()
#The MIDL tool exists for Windows only, so for other systems, we have the prebuilt xxx_i.c files checked in
foreach(IDL_SOURCE ${CORGUIDS_IDL_SOURCES})
diff --git a/src/jit/CMakeLists.txt b/src/jit/CMakeLists.txt
index dce4f59c3a..59d66bd216 100644
--- a/src/jit/CMakeLists.txt
+++ b/src/jit/CMakeLists.txt
@@ -97,7 +97,7 @@ if(CLR_CMAKE_PLATFORM_UNIX)
${SHARED_LIB_SOURCES}
)
add_dependencies(ClrJit CoreClrPal gcinfo)
-else(CLR_CMAKE_PLATFORM_UNIX)
+else()
add_library(ClrJit
${SOURCES}
)
diff --git a/src/md/md_dbi.cmake b/src/md/md_dbi.cmake
index 6e7166b2fc..7622cf04c9 100644
--- a/src/md/md_dbi.cmake
+++ b/src/md/md_dbi.cmake
@@ -11,7 +11,7 @@ if(WIN32)
# using static crt for dbi
if (CMAKE_BUILD_TYPE STREQUAL DEBUG)
add_definitions(-MTd)
- else(CMAKE_BUILD_TYPE STREQUAL DEBUG)
+ else()
add_definitions(-MT)
endif(CMAKE_BUILD_TYPE STREQUAL DEBUG)
-endif(WIN32) \ No newline at end of file
+endif(WIN32)
diff --git a/src/utilcode/dac/CMakeLists.txt b/src/utilcode/dac/CMakeLists.txt
index d792c4ca57..ff6c48581a 100644
--- a/src/utilcode/dac/CMakeLists.txt
+++ b/src/utilcode/dac/CMakeLists.txt
@@ -4,7 +4,7 @@ include(${CLR_DIR}/dac.cmake)
if(CLR_CMAKE_PLATFORM_UNIX)
add_library(utilcode_dac STATIC ${UTILCODE_SOURCES})
add_dependencies(utilcode_dac CoreClrPal)
-else(CLR_CMAKE_PLATFORM_UNIX)
+else()
add_definitions(-DSELF_NO_HOST)
add_library(utilcode_dac STATIC ${UTILCODE_SOURCES} ../hostimpl.cpp)
endif(CLR_CMAKE_PLATFORM_UNIX) \ No newline at end of file
diff --git a/src/utilcode/dyncrt/CMakeLists.txt b/src/utilcode/dyncrt/CMakeLists.txt
index ceb0cff1f4..36f2ef4872 100644
--- a/src/utilcode/dyncrt/CMakeLists.txt
+++ b/src/utilcode/dyncrt/CMakeLists.txt
@@ -2,6 +2,6 @@
if(CLR_CMAKE_PLATFORM_UNIX)
add_library(utilcode STATIC ${UTILCODE_SOURCES})
add_dependencies(utilcode CoreClrPal)
-else(CLR_CMAKE_PLATFORM_UNIX)
+else()
add_library(utilcode STATIC ${UTILCODE_SOURCES})
endif(CLR_CMAKE_PLATFORM_UNIX) \ No newline at end of file
diff --git a/src/vm/CMakeLists.txt b/src/vm/CMakeLists.txt
index 489b5c7f0b..14591c37cf 100644
--- a/src/vm/CMakeLists.txt
+++ b/src/vm/CMakeLists.txt
@@ -326,7 +326,7 @@ set(VM_SOURCES_WKS_AMD64_ASM
${AMD64_SOURCES_DIR}/VirtualCallStubAMD64.asm
)
-else(WIN32)
+else()
set(VM_SOURCES_WKS_AMD64_ASM
${AMD64_SOURCES_DIR}/jithelpers_fastwritebarriers.S
${AMD64_SOURCES_DIR}/jithelpers_slow.S