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

View file

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

View file

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