Code Monkey home page Code Monkey logo

Comments (2)

Sunderlandkyl avatar Sunderlandkyl commented on September 25, 2024

Yeah, you can specify "${CMAKE_PROJECT_NAME}_IGSIO_GIT_TAG" to lock IGSIO to a specific revision.

from slicerigsio.

jamesobutler avatar jamesobutler commented on September 25, 2024

Thanks for the help! I appear to have been successful with the following code below in the main CMakeLists.txt of my Slicer custom application (like this). I confirmed that at "C:\MyCustomApp-bin\IGSIO" that it was using the newly specified git tag. If you agree that this is the correct solution please close this issue.

#-----------------------------------------------------------------------------
# SlicerIGSIO
set(extension_name "SlicerIGSIO")
set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
+ExternalProject_SetIfNotDefined(
+  ${CMAKE_PROJECT_NAME}_IGSIO_GIT_TAG
+  "470b1553768981f3a86b9a79bf0f9016bebe74ce"
+  QUIET
+  )
FetchContent_Populate(${extension_name}
 SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
 GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/IGSIO/${extension_name}.git
 GIT_TAG        762d256a24e10e740d307022cac098cd3032c09a
 GIT_PROGRESS   1
 QUIET
 )
list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
ExternalProject_Add_Dependencies(IGSIO
  DEPENDS
    VTK
    VP9
    YASM
  )
# Slicer becomes needs vtkAddon
ExternalProject_Add_Dependencies(YASM
  DEPENDS
    python
  )

from slicerigsio.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.