Skip to content

Commit a03779a

Browse files
committed
Fix configure when building docs without swig
1 parent 147d874 commit a03779a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ set(FLIBCPP_FORTRAN_STD "f2003" CACHE STRING
4545
# MODULES TO LOAD
4646
#---------------------------------------------------------------------------#
4747

48+
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
49+
4850
if (FLIBCPP_USE_SWIG)
4951
find_package(SWIG)
5052
endif()
5153

5254
if (FLIBCPP_USE_SWIG AND SWIG_FOUND)
5355
# SWIG is requested and available; make sure it's the Fortran fork.
54-
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
5556
include(CheckSWIGFortran)
5657
if (CMAKE_VERSION VERSION_LESS 3.99)
5758
# TODO: This is until Fortran support gets added to the upstream cmake script

0 commit comments

Comments
 (0)