Commit 9ce59582 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Overcome a current limitation on jrl-cmakemodules

parent 38047a92
......@@ -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)
......
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