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
90674df9
Commit
90674df9
authored
Jan 12, 2016
by
Olivier Stasse
Browse files
Display LD_VERSION
parent
5d2f83eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
90674df9
...
...
@@ -17,6 +17,7 @@ SET(PROJECT_URL "http://github.com/laas/soth")
SET
(
CXX_DISABLE_WERROR True
)
SET
(
CMAKE_VERBOSE_MAKEFILE true
)
project
(
${
PROJECT_NAME
}
)
# C++ version 4.7 is less permissive than older versions.
...
...
@@ -39,6 +40,11 @@ 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