Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
linphone-cmake-builder
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
linphone-cmake-builder
Commits
be3b3fd8
Commit
be3b3fd8
authored
Feb 15, 2016
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting a CMake extra generator.
parent
1f209119
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
CMakeLists.txt
cmake/CMakeLists.txt
+13
-2
No files found.
cmake/CMakeLists.txt
View file @
be3b3fd8
...
...
@@ -416,6 +416,15 @@ macro(linphone_builder_set_ep_directories PROJNAME)
endmacro
()
macro
(
linphone_builder_set_ep_generator
)
if
(
CMAKE_EXTRA_GENERATOR
)
set
(
ep_generator
"
${
CMAKE_EXTRA_GENERATOR
}
-
${
CMAKE_GENERATOR
}
"
)
else
()
set
(
ep_generator
"
${
CMAKE_GENERATOR
}
"
)
endif
()
endmacro
()
macro
(
linphone_builder_create_autogen_command PROJNAME
)
if
(
EP_
${
PROJNAME
}
_USE_AUTOGEN
)
if
(
EP_
${
PROJNAME
}
_CONFIGURE_OPTIONS_PASSED_TO_AUTOGEN
)
...
...
@@ -499,6 +508,7 @@ function(linphone_builder_add_external_project PROJNAME)
endif
()
linphone_builder_set_ep_directories
(
${
PROJNAME
}
)
linphone_builder_set_ep_generator
()
if
(
NOT EP_
${
PROJNAME
}
_DO_NOT_USE_CMAKE_FLAGS
)
linphone_builder_apply_cmake_flags_to_autotools_project
(
${
PROJNAME
}
)
endif
()
...
...
@@ -673,7 +683,7 @@ function(linphone_builder_add_external_project PROJNAME)
BINARY_DIR
"
${
ep_build
}
"
${
DOWNLOAD_SOURCE
}
PATCH_COMMAND
${
EP_
${
PROJNAME
}
_PATCH_COMMAND
}
CMAKE_GENERATOR
${
CMAKE_GENERATOR
}
CMAKE_GENERATOR
${
ep_generator
}
${
BUILD_COMMANDS
}
)
...
...
@@ -847,6 +857,7 @@ endfunction()
macro
(
linphone_builder_add_dummy_libraries_generation
)
if
(
LINPHONE_BUILDER_DUMMY_LIBRARIES
)
linphone_builder_set_ep_directories
(
dummy_libraries
)
linphone_builder_set_ep_generator
()
linphone_builder_expand_external_project_vars
()
ExternalProject_Add
(
EP_dummy_libraries
DEPENDS TARGET_linphone_builder
...
...
@@ -854,7 +865,7 @@ macro(linphone_builder_add_dummy_libraries_generation)
BINARY_DIR
"
${
ep_build
}
"
SOURCE_DIR
"
${
CMAKE_CURRENT_LIST_DIR
}
/cmake/dummy_libraries"
DOWNLOAD_COMMAND
""
CMAKE_GENERATOR
${
CMAKE_GENERATOR
}
CMAKE_GENERATOR
${
ep_generator
}
CMAKE_ARGS
${
LINPHONE_BUILDER_EP_ARGS
}
-DCMAKE_INSTALL_PREFIX=
${
CMAKE_INSTALL_PREFIX
}
-DLINPHONE_BUILDER_DUMMY_LIBRARIES=
${
LINPHONE_BUILDER_DUMMY_LIBRARIES
}
)
endif
()
...
...
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