diff --git a/cmake/compile_definitions/macos.cmake b/cmake/compile_definitions/macos.cmake index e2455bc6d51..9d445869b1a 100644 --- a/cmake/compile_definitions/macos.cmake +++ b/cmake/compile_definitions/macos.cmake @@ -7,9 +7,9 @@ set(MACOS_LINK_DIRECTORIES /opt/local/lib /usr/local/lib) -foreach(DIR ${MACOS_LINK_DIRECTORIES}) - if(EXISTS ${DIR}) - link_directories(${DIR}) +foreach(dir ${MACOS_LINK_DIRECTORIES}) + if(EXISTS ${dir}) + link_directories(${dir}) endif() endforeach()