Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
soth
Commits
9ce59582
Commit
9ce59582
authored
Jan 13, 2016
by
Olivier Stasse
Browse files
[cmake] Overcome a current limitation on jrl-cmakemodules
parent
38047a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9ce59582
...
...
@@ -4,6 +4,15 @@
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.6
)
IF
(
UNIX
)
INCLUDE
(
CMakeFindBinUtils
)
ENDIF
(
UNIX
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_LINKER
}
-v OUTPUT_VARIABLE LD_VERSION_STR ERROR_VARIABLE LD_VERSION_STR
)
MESSAGE
(
"LD_VERSION_STR:
${
LD_VERSION_STR
}
"
)
STRING
(
REGEX MATCH
"([0-9]+
\\
.[0-9]+(
\\
.[0-9]+)?)"
LD_VERSION
${
LD_VERSION_STR
}
)
MESSAGE
(
"LD_VERSION:
${
LD_VERSION
}
"
)
INCLUDE
(
cmake/base.cmake
)
INCLUDE
(
cmake/boost.cmake
)
INCLUDE
(
cmake/cpack.cmake
)
...
...
@@ -40,11 +49,6 @@ ENDIF(UNIX)
SETUP_PROJECT
()
SEARCH_FOR_EIGEN
()
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_LINKER
}
-v OUTPUT_VARIABLE LD_VERSION_STR ERROR_VARIABLE LD_VERSION_STR
)
MESSAGE
(
"LD_VERSION_STR:
${
LD_VERSION_STR
}
"
)
STRING
(
REGEX MATCH
"([0-9]+
\\
.[0-9]+(
\\
.[0-9]+)?)"
LD_VERSION
${
LD_VERSION_STR
}
)
MESSAGE
(
"LD_VERSION:
${
LD_VERSION
}
"
)
# Handle OS specificities
INCLUDE
(
CheckIncludeFiles
)
CHECK_INCLUDE_FILES
(
"sys/time.h"
SYS_TIME_H
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment