Skip to content

Commit 54e7483

Browse files
authored
Merge branch 'main' into somwav
2 parents 37f8103 + 0b2b30c commit 54e7483

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

CMakeLists.txt

+12-17
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,18 @@ add_subdirectory(streams)
7171
add_subdirectory(dshr)
7272

7373
if(NOT DISABLE_FoX)
74-
if(IS_DIRECTORY "${FOX_ROOT}")
75-
message(STATUS "FoX library is already checked out!")
76-
message(STATUS "FoX source dir: ${FOX_ROOT}")
77-
else()
78-
FetchContent_Declare(fox
79-
GIT_REPOSITORY https://github.com/ESMCI/fox.git
80-
GIT_TAG 4.1.2.1
81-
SOURCE_DIR ${FOX_ROOT}
82-
BINARY_DIR ${FOX_ROOT}/..
83-
)
84-
FetchContent_GetProperties(fox)
85-
if(NOT fox_POPULATED)
86-
FetchContent_Populate(fox)
87-
message(STATUS "FoX source dir: ${fox_SOURCE_DIR}")
88-
message(STATUS "FoX binary dir: ${fox_BINARY_DIR}")
89-
endif()
90-
endif()
74+
FetchContent_Declare(fox
75+
GIT_REPOSITORY https://github.com/ESMCI/fox.git
76+
GIT_TAG 4.1.2.1
77+
SOURCE_DIR ${FOX_ROOT}
78+
BINARY_DIR ${FOX_ROOT}/..
79+
)
80+
FetchContent_GetProperties(fox)
81+
if(NOT fox_POPULATED)
82+
FetchContent_Populate(fox)
83+
message(STATUS "FoX source dir: ${fox_SOURCE_DIR}")
84+
message(STATUS "FoX binary dir: ${fox_BINARY_DIR}")
85+
endif()
9186
add_subdirectory(fox)
9287

9388
target_include_directories(streams PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/fox/include>

0 commit comments

Comments
 (0)