Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
cc9bf0e6
Commit
cc9bf0e6
authored
Dec 09, 2014
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent downloading rootca at each build when building with CMake.
parent
4ebc9c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
share/CMakeLists.txt
share/CMakeLists.txt
+4
-1
No files found.
share/CMakeLists.txt
View file @
cc9bf0e6
...
...
@@ -30,7 +30,10 @@ if(APPLE)
string
(
REGEX REPLACE
"OPENSSLDIR:
\"
(.*)
\"
"
"
\\
1"
HTTPS_CA_DIR
"
${
OPENSSL_VERSION
}
"
)
endif
()
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-DHTTPS_CA_DIR=
${
HTTPS_CA_DIR
}
-DWORK_DIR=
${
CMAKE_CURRENT_SOURCE_DIR
}
-DOUTPUT_DIR=
${
CMAKE_CURRENT_BINARY_DIR
}
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/rootca.cmake
)
set_source_files_properties
(
${
CMAKE_CURRENT_BINARY_DIR
}
/rootca.pem PROPERTIES GENERATED TRUE
)
add_custom_command
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/rootca.pem
COMMAND
${
CMAKE_COMMAND
}
-DHTTPS_CA_DIR=
${
HTTPS_CA_DIR
}
-DWORK_DIR=
${
CMAKE_CURRENT_SOURCE_DIR
}
-DOUTPUT_DIR=
${
CMAKE_CURRENT_BINARY_DIR
}
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/rootca.cmake
)
add_custom_target
(
rootca ALL DEPENDS
${
CMAKE_CURRENT_BINARY_DIR
}
/rootca.pem
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/rootca.pem
DESTINATION
${
PACKAGE_DATA_DIR
}
/linphone
...
...
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