Skip to content

Commit c852722

Browse files
authored
Use new macro for fetching dep (#11)
1 parent a70fd49 commit c852722

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ if(Sofa.GL_FOUND)
9191
find_package(QGLViewer QUIET)
9292
if(NOT QGLViewer_FOUND AND SOFA_ALLOW_FETCH_DEPENDENCIES)
9393
message("Sofa.Qt: DEPENDENCY QGLViewer NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is ON, fetching QGLViewer...")
94-
include(FetchContent)
95-
FetchContent_Declare(QGLViewer
94+
sofa_fetch_dependency(QGLViewer
9695
GIT_REPOSITORY https://github.com/sofa-framework/libQGLViewer/
9796
GIT_TAG v2.8.1_SOFA
9897
)
99-
FetchContent_MakeAvailable(QGLViewer)
10098
elseif (NOT QGLViewer_FOUND)
10199
message(FATAL_ERROR "Sofa.Qt: DEPENDENCY QGLViewer NOT FOUND. SOFA_ALLOW_FETCH_DEPENDENCIES is OFF and thus cannot be fetched. Install QGLViewer (version=2.8.0), or enable SOFA_ALLOW_FETCH_DEPENDENCIES to fix this issue.")
102100
endif()

0 commit comments

Comments
 (0)