Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
pinocchio
Commits
a614129c
Commit
a614129c
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Lua is now optional.
One has to set explicitely BUILD_WITH_LUA_SUPPORT ON to build the Lua parsers.
parent
5affb24b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+17
-12
17 additions, 12 deletions
CMakeLists.txt
with
17 additions
and
12 deletions
CMakeLists.txt
+
17
−
12
View file @
a614129c
...
...
@@ -61,6 +61,7 @@ OPTION (BUILD_UTILS "Build the utils" OFF)
OPTION
(
INITIALIZE_WITH_NAN
"Initialize Eigen entries with NaN"
OFF
)
OPTION
(
BUILD_TESTS_WITH_HPP
"Build geom tests and benchmarks with hpp to do comparisons"
OFF
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
OPTION
(
BUILD_WITH_LUA_SUPPORT
"Build the lua parser"
OFF
)
OPTION
(
BUILD_WITH_COMMIT_VERSION
"Build libraries by setting specific commit version"
OFF
)
IF
(
INITIALIZE_WITH_NAN
)
...
...
@@ -78,7 +79,6 @@ ENDMACRO(TAG_LIBRARY_VERSION)
ADD_REQUIRED_DEPENDENCY
(
"eigen3 >= 3.0.5"
)
ADD_OPTIONAL_DEPENDENCY
(
"metapod >= 1.0.7"
)
ADD_OPTIONAL_DEPENDENCY
(
"urdfdom >= 0.2.0"
)
ADD_OPTIONAL_DEPENDENCY
(
"lua5.2"
)
ADD_OPTIONAL_DEPENDENCY
(
"hpp-fcl >= 0.4.2"
)
# Spetcial care of Eigen3 greater than 3.2.10
...
...
@@ -103,18 +103,23 @@ ENDIF(URDFDOM_FOUND)
# Special care of lua which can be of versions 5.1 or 5.2
# Priority is set to lua5.2
IF
(
LUA5_2_FOUND
)
SET
(
LUA5_FOUND TRUE
)
SET
(
LUA5_PACKAGE
"lua5.2"
)
ADD_DEFINITIONS
(
-DLUA_VERSION_GREATER_5_2
)
PKG_CONFIG_APPEND_CFLAGS
(
"-DLUA_VERSION_GREATER_5_2"
)
ELSEIF
(
LUA5_2_FOUND
)
ADD_OPTIONAL_DEPENDENCY
(
"lua5.1"
)
IF
(
LUA5_1_FOUND
)
IF
(
BUILD_WITH_LUA_SUPPORT
)
ADD_OPTIONAL_DEPENDENCY
(
"lua5.2"
)
IF
(
LUA5_2_FOUND
)
SET
(
LUA5_FOUND TRUE
)
SET
(
LUA5_PACKAGE
"lua5.1"
)
ENDIF
(
LUA5_1_FOUND
)
ENDIF
(
LUA5_2_FOUND
)
SET
(
LUA5_PACKAGE
"lua5.2"
)
ADD_DEFINITIONS
(
-DLUA_VERSION_GREATER_5_2
)
PKG_CONFIG_APPEND_CFLAGS
(
"-DLUA_VERSION_GREATER_5_2"
)
ELSE
(
LUA5_2_FOUND
)
ADD_OPTIONAL_DEPENDENCY
(
"lua5.1"
)
IF
(
LUA5_1_FOUND
)
SET
(
LUA5_FOUND TRUE
)
SET
(
LUA5_PACKAGE
"lua5.1"
)
ELSE
(
LUA5_1_FOUND
)
MESSAGE
(
FATAL_ERROR
"Cannot find a suitable version of Lua 5.1 or 5.2"
)
ENDIF
(
LUA5_1_FOUND
)
ENDIF
(
LUA5_2_FOUND
)
ENDIF
(
BUILD_WITH_LUA_SUPPORT
)
SET
(
BOOST_REQUIERED_COMPONENTS filesystem system
)
SET
(
BOOST_BUILD_COMPONENTS unit_test_framework
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment