Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
c3d7345b
Commit
c3d7345b
authored
Jul 04, 2014
by
Ghislain MARY
Browse files
Add postinstall step only if the postinstall.cmake file is present.
parent
28b08c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
cmake/LinphoneCMakeBuilder.cmake
cmake/LinphoneCMakeBuilder.cmake
+9
-7
No files found.
cmake/LinphoneCMakeBuilder.cmake
View file @
c3d7345b
...
...
@@ -545,14 +545,16 @@ function(linphone_builder_add_project PROJNAME)
if
(
MSVC
)
if
(
"
${
EP_
${
PROJNAME
}
_BUILD_METHOD
}
"
STREQUAL
"autotools"
)
ExternalProject_Add_Step
(
EP_
${
PROJNAME
}
postinstall
COMMAND
${
CMAKE_COMMAND
}
-DPYTHON_EXECUTABLE=
${
PYTHON_EXECUTABLE
}
-DSOURCE_DIR=
${
CMAKE_CURRENT_SOURCE_DIR
}
-DINSTALL_PREFIX=
${
CMAKE_INSTALL_PREFIX
}
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/builders/
${
PROJNAME
}
/postinstall.cmake
COMMENT
"Performing post-installation step"
DEPENDEES mkdir update patch download configure build install
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
EXISTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/builders/
${
PROJNAME
}
/postinstall.cmake
)
ExternalProject_Add_Step
(
EP_
${
PROJNAME
}
postinstall
COMMAND
${
CMAKE_COMMAND
}
-DPYTHON_EXECUTABLE=
${
PYTHON_EXECUTABLE
}
-DSOURCE_DIR=
${
CMAKE_CURRENT_SOURCE_DIR
}
-DINSTALL_PREFIX=
${
CMAKE_INSTALL_PREFIX
}
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/builders/
${
PROJNAME
}
/postinstall.cmake
COMMENT
"Performing post-installation step"
DEPENDEES mkdir update patch download configure build install
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
endif
()
endif
()
endif
(
MSVC
)
endif
()
endfunction
(
linphone_builder_add_project
)
function
(
linphone_builder_add_external_projects
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment