build: avoid policy CMP0053 warnings
On Windows there's an environment variable with parentheses, avoid the CMake warning
This commit is contained in:
@@ -16,7 +16,8 @@ if (NOT EURESYS_DIR)
|
||||
# 32-bit dir on win32
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _PROG_FILES)
|
||||
# 32-bit dir on win64
|
||||
file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _PROG_FILES_X86)
|
||||
set(_PROG_FILES_X86 "ProgramFiles(x86)")
|
||||
file(TO_CMAKE_PATH "$ENV{${_PROG_FILES_X86}}" _PROG_FILES_X86)
|
||||
|
||||
# use (x86) dir if exists
|
||||
if (_PROG_FILES_X86)
|
||||
@@ -43,4 +44,4 @@ find_library (EURESYS_LIBRARIES NAMES MultiCam
|
||||
DOC "EURESYS library to link with")
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (EURESYS DEFAULT_MSG EURESYS_INCLUDE_DIR EURESYS_LIBRARIES)
|
||||
find_package_handle_standard_args (EURESYS DEFAULT_MSG EURESYS_INCLUDE_DIR EURESYS_LIBRARIES)
|
||||
|
||||
Reference in New Issue
Block a user