cmake: Change endif(.*) to endif()

This commit is contained in:
Florent Castelli 2017-01-25 06:25:52 +01:00
parent 3c184dcf8d
commit 87380c1c2c
3 changed files with 24 additions and 24 deletions

View File

@ -319,8 +319,8 @@ if(UNIX)
option(LINUX_LOCAL_DEV "Enable relocatable binary" OFF)
if(LINUX_LOCAL_DEV)
add_definitions(-DLINUX_LOCAL_DEV)
endif(LINUX_LOCAL_DEV)
endif(UNIX)
endif()
endif()
# BSDs put packages in /usr/local instead of /usr, so we need to
# force CMake to look in those directories by default, too.
@ -339,7 +339,7 @@ find_package(Threads)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE)
endif(NOT CMAKE_BUILD_TYPE)
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@ -362,7 +362,7 @@ endif()
if(GDBSTUB)
add_definitions(-DUSE_GDBSTUB)
endif(GDBSTUB)
endif()
if(VTUNE)
if(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
@ -378,7 +378,7 @@ if(VTUNE)
"${VTUNE_DIR}/lib64/libjitprofiling.a"
"${VTUNE_DIR}/lib64/libittnotify.a"
)
endif(VTUNE)
endif()
if(ANDROID)
message(STATUS "Building for Android")
@ -530,7 +530,7 @@ if(UNIX AND NOT APPLE AND NOT ANDROID AND NOT ENABLE_HEADLESS)
SET(X11_FOUND "")
message(STATUS "X11 support disabled")
add_definitions(-DHAVE_X11=0)
endif(TRY_X11 AND X11_FOUND)
endif()
if (NOT USE_X11)
message(FATAL_ERROR "\n"
@ -545,7 +545,7 @@ if(USE_X11)
add_definitions(-DHAVE_XRANDR=1)
else()
add_definitions(-DHAVE_XRANDR=0)
endif(XRANDR_FOUND)
endif()
pkg_check_modules(X11_INPUT REQUIRED xi>=1.5.0)
endif()
@ -687,7 +687,7 @@ else(ZLIB_FOUND)
message(STATUS "Shared zlib not found, falling back to the static library")
add_subdirectory(Externals/zlib)
include_directories(Externals/zlib)
endif(ZLIB_FOUND)
endif()
if(NOT APPLE)
check_lib(LZO "(no .pc for lzo2)" lzo2 lzo/lzo1x.h QUIET)
@ -742,8 +742,8 @@ if(ENABLE_SDL)
include_directories(${SDL_INCLUDE_DIR})
else(SDL_FOUND)
message(STATUS "SDL NOT found, disabling SDL input")
endif(SDL_FOUND)
endif(SDL2_FOUND)
endif()
endif()
endif()
if(NOT ANDROID)
@ -906,7 +906,7 @@ if(NOT DISABLE_WX)
message(STATUS "At least ${wxMIN_VERSION} is required; ignoring found version")
unset(wxWidgets_FOUND)
endif()
endif(wxWidgets_FOUND)
endif()
if(UNIX AND NOT APPLE)
# There is a bug in the FindGTK module in cmake version 2.8.2 that
@ -963,8 +963,8 @@ if(NOT DISABLE_WX)
add_subdirectory(Externals/wxWidgets3)
set(wxWidgets_FOUND TRUE)
set(wxWidgets_LIBRARIES "wx")
endif(wxWidgets_FOUND)
endif(NOT DISABLE_WX)
endif()
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD")
set(LIBS ${LIBS} usbhid)

View File

@ -9,27 +9,27 @@ set(LIBS "")
if(OPENSLES_FOUND)
set(SRCS ${SRCS} OpenSLESStream.cpp)
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
endif(OPENSLES_FOUND)
endif()
if(ALSA_FOUND)
set(SRCS ${SRCS} AlsaSoundStream.cpp)
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
endif(ALSA_FOUND)
endif()
if(AO_FOUND)
set(SRCS ${SRCS} AOSoundStream.cpp)
set(LIBS ${LIBS} ${AO_LIBRARIES})
endif(AO_FOUND)
endif()
if(OPENAL_FOUND)
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
endif(OPENAL_FOUND)
endif()
if(PULSEAUDIO_FOUND)
set(SRCS ${SRCS} PulseAudioStream.cpp)
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
endif(PULSEAUDIO_FOUND)
endif()
if(WIN32)
set(SRCS ${SRCS} XAudio2Stream.cpp)

View File

@ -266,7 +266,7 @@ if(LIBUSB_FOUND)
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
set(SRCS ${SRCS} IOS/USB/USB_HIDv4.cpp
IOS/USB/Bluetooth/BTReal.cpp)
endif(LIBUSB_FOUND)
endif()
if(NOT APPLE)
set(LIBS ${LIBS} videovulkan)
@ -297,22 +297,22 @@ elseif(UNIX)
endif()
if(HIDAPI_FOUND)
set(SRCS ${SRCS} HW/WiimoteReal/IOhidapi.cpp)
endif(HIDAPI_FOUND)
endif()
if(PORTAUDIO_FOUND)
set(LIBS ${LIBS} ${PORTAUDIO_LIBRARIES})
endif(PORTAUDIO_FOUND)
endif()
if(OPROFILE_FOUND)
set(LIBS ${LIBS} ${OPROFILE_LIBRARIES})
endif(OPROFILE_FOUND)
endif()
if(GDBSTUB)
set(SRCS ${SRCS} PowerPC/GDBStub.cpp)
endif(GDBSTUB)
endif()
if(UNIX)
set(SRCS ${SRCS} MemoryWatcher.cpp)
endif(UNIX)
endif()
add_dolphin_library(core "${SRCS}" "${LIBS}")