diff --git a/cmake/modules/FindStdFilesystem.cmake b/cmake/modules/FindStdFilesystem.cmake index 5d3336571ce..c66f572459b 100644 --- a/cmake/modules/FindStdFilesystem.cmake +++ b/cmake/modules/FindStdFilesystem.cmake @@ -14,7 +14,7 @@ macro(try_std_filesystem_library _library _result _already_included) ${_std_filesystem_try_compile_arg}) unset(_std_filesystem_try_compile_arg) if(_std_filesystem_compiles) - if(NOT _library STREQUAL "") + if(NOT ${_library} STREQUAL "") set(${_result} ${_library}) else() set(${_already_included} "included by standard library")