Skip to content

Commit 8760303

Browse files
committed
cmake: fix variable name when enabling languages for external dependencies
1 parent 1c65c6b commit 8760303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,8 @@ set(LAPACKE_LANGUAGES "C")
733733
set(PETSC_LANGUAGES "Fortran;C")
734734

735735
foreach(DEP_NAME IN LISTS EXTERNAL_DEPS)
736-
if(DEFINED ${DEP_NAME}_LANGUAGES)
737-
string(TOUPPER ${DEP_NAME} UPPER_DEP_NAME)
736+
string(TOUPPER ${DEP_NAME} UPPER_DEP_NAME)
737+
if(DEFINED ${UPPER_DEP_NAME}_LANGUAGES)
738738
foreach(LANGUAGE IN LISTS ${UPPER_DEP_NAME}_LANGUAGES)
739739
enable_language(${LANGUAGE})
740740
endforeach()

0 commit comments

Comments
 (0)