diff --git a/CMakeLists.txt b/CMakeLists.txt index e444dcc8..6fb67588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,7 +144,7 @@ if(MSVC) option(USE_STATIC_MSVC_RUNTIME "Use the static runtime library" OFF) endif() -if(DEFINED ENV{${ZLIB_ROOT}}) +if(DEFINED ENV{ZLIB_ROOT}) set(ZLIB_ROOT $ENV{ZLIB_ROOT}) endif()