Commit 90674df9 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Display LD_VERSION

parent 5d2f83eb
...@@ -17,6 +17,7 @@ SET(PROJECT_URL "http://github.com/laas/soth") ...@@ -17,6 +17,7 @@ SET(PROJECT_URL "http://github.com/laas/soth")
SET(CXX_DISABLE_WERROR True) SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE true) SET(CMAKE_VERBOSE_MAKEFILE true)
project(${PROJECT_NAME}) project(${PROJECT_NAME})
# C++ version 4.7 is less permissive than older versions. # C++ version 4.7 is less permissive than older versions.
...@@ -39,6 +40,11 @@ ENDIF(UNIX) ...@@ -39,6 +40,11 @@ ENDIF(UNIX)
SETUP_PROJECT() SETUP_PROJECT()
SEARCH_FOR_EIGEN() 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 # Handle OS specificities
INCLUDE(CheckIncludeFiles) INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES("sys/time.h" SYS_TIME_H) CHECK_INCLUDE_FILES("sys/time.h" SYS_TIME_H)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment