Skip to content

Commit 122e6b3

Browse files
author
Christian Beier
committed
CMake: fix TurboVNC-related regex
1 parent e492071 commit 122e6b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if(WITH_JPEG)
107107

108108
if(NOT FOUND_LIBJPEG_TURBO)
109109
# last-resort grep check (when using LibVNCServer as a CMake subdir together with turbojpeg CMake subdir, the build check above fails since turbojpeg is not yet built when LibVNCServer is configured)
110-
if(JPEG_INCLUDE_DIR MATCHES "\..*") # is relative?
110+
if(JPEG_INCLUDE_DIR MATCHES "^\\.\\..*$") # is relative?
111111
set(JPEGLIB_H_PATH "${CMAKE_SOURCE_DIR}/${JPEG_INCLUDE_DIR}/jpeglib.h")
112112
else()
113113
set(JPEGLIB_H_PATH "${JPEG_INCLUDE_DIR}/jpeglib.h")

0 commit comments

Comments
 (0)