Commit f7edb868 authored by quicksilver's avatar quicksilver
Browse files

update ExternalProject_Create_Cache cmake function


Former-commit-id: e522779096dd1bd5af4a7482f00283c411a6f462
parent 6f907a1e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -88,6 +88,11 @@ function(ExternalProject_Create_Cache project_name package_file install_path cac
        file(REMOVE ${package_file})
    endif()

    string(REGEX REPLACE "(.+)/.+$" "\\1" package_dir ${package_file})
    if(NOT EXISTS ${package_dir})
        file(MAKE_DIRECTORY ${package_dir})
    endif()

    message(STATUS "Will create cached package file: ${package_file}")

    ExternalProject_Add_Step(${project_name} package
+5 −0
Original line number Diff line number Diff line
@@ -88,6 +88,11 @@ function(ExternalProject_Create_Cache project_name package_file install_path cac
        file(REMOVE ${package_file})
    endif()

    string(REGEX REPLACE "(.+)/.+$" "\\1" package_dir ${package_file})
    if(NOT EXISTS ${package_dir})
        file(MAKE_DIRECTORY ${package_dir})
    endif()

    message(STATUS "Will create cached package file: ${package_file}")

    ExternalProject_Add_Step(${project_name} package