all repos — mgba @ 452a2f1cdf01b12422a2a550818f4bea2988ffcf

mGBA Game Boy Advance Emulator

CMake: Fix regex on empty libzip version
Vicki Pfau vi@endrift.com
Tue, 23 Jun 2020 23:22:10 -0700
commit

452a2f1cdf01b12422a2a550818f4bea2988ffcf

parent

93f3d3ef38e4012ed3e9d1556f02f02c988b2739

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -614,13 +614,13 @@ link_directories(${LIBZIP_LIBRARY_DIRS})

list(APPEND DEPENDENCY_LIB ${LIBZIP_LIBRARIES}) list(APPEND FEATURES LIBZIP) list(APPEND VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-zip.c) - string(REGEX MATCH "^[0-9]+" LIBZIP_VERSION_MAJOR ${libzip_VERSION}) + string(REGEX MATCH "^[0-9]+" LIBZIP_VERSION_MAJOR "${libzip_VERSION}") if (LIBZIP_VERSION_MAJOR LESS 1) set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libzip2") elseif(LIBZIP_VERSION_MAJOR EQUAL 1) set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libzip4|libzip5") else() - message(AUTHOR_WARNING Unknown version of libzip detected: ${libzip_VERSION}) + message(AUTHOR_WARNING "Unknown version of libzip detected: ${libzip_VERSION}") endif() elseif(USE_MINIZIP) include_directories(AFTER ${MINIZIP_INCLUDE_DIRS})