Skip to content

Commit bc3300a

Browse files
jhalegarth-wells
andauthored
Quote strings in DOLFINxConfig.cmake - evaluates to empty string -> false. (#4405)
Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
1 parent de6e9ea commit bc3300a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cpp/cmake/templates/DOLFINXConfig.cmake.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ find_package(Boost 1.70 REQUIRED)
2929

3030
# CONFIG mode is explicit, otherwise the FindUFCx.cmake installed alongside this
3131
# file is picked up as Findufcx.cmake on case-insensitive filesystems.
32-
if(@ufcx_FOUND@)
32+
if("@ufcx_FOUND@")
3333
find_dependency(ufcx CONFIG)
34-
elseif(@UFCx_FOUND@)
34+
elseif("@UFCx_FOUND@")
3535
# Path is removed again so that consumers do not inherit a module directory
3636
# containing FindUFCx.cmake.
3737
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
@@ -40,7 +40,7 @@ elseif(@UFCx_FOUND@)
4040
endif()
4141

4242
# Basix
43-
if(@DOLFINX_BASIX_PYTHON@)
43+
if("@DOLFINX_BASIX_PYTHON@")
4444
find_package(Python3 COMPONENTS Interpreter QUIET)
4545

4646
if(Python3_Interpreter_FOUND)
@@ -83,7 +83,7 @@ if(NOT TARGET hdf5::hdf5)
8383
endif()
8484
endif()
8585

86-
if(@PETSC_FOUND@)
86+
if("@PETSC_FOUND@")
8787
if(NOT TARGET PkgConfig::PETSC)
8888
find_package(PkgConfig REQUIRED)
8989
set(
@@ -94,7 +94,7 @@ if(@PETSC_FOUND@)
9494
endif()
9595
endif()
9696

97-
if(@SLEPC_FOUND@)
97+
if("@SLEPC_FOUND@")
9898
if(NOT TARGET PkgConfig::SLEPC)
9999
find_package(PkgConfig REQUIRED)
100100
set(
@@ -113,7 +113,7 @@ if(@SLEPC_FOUND@)
113113
endif()
114114
endif()
115115

116-
if(@ADIOS2_FOUND@)
116+
if("@ADIOS2_FOUND@")
117117
find_dependency(
118118
ADIOS2
119119
2.8.1

0 commit comments

Comments
 (0)