/[PAMELA software]/PamVMC_update/CMakeLists.txt
ViewVC logotype

Diff of /PamVMC_update/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by pam-fi, Fri Mar 27 15:38:34 2015 UTC revision 1.5 by pam-fi, Tue Mar 31 08:52:39 2015 UTC
# Line 31  string(REPLACE " -pedantic" "" CMAKE_CXX Line 31  string(REPLACE " -pedantic" "" CMAKE_CXX
31    
32  # Automatically recurse over linked linbraries.  # Automatically recurse over linked linbraries.
33  # For binutils >= 2.22 (http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2011-12/msg00257.html)  # For binutils >= 2.22 (http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2011-12/msg00257.html)
34  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -Wl,--copy-dt-needed-entries" )  execute_process(
35        COMMAND ld -v
36        OUTPUT_VARIABLE LD_VERSION_LONG
37        OUTPUT_STRIP_TRAILING_WHITESPACE)
38    string(REGEX MATCH "[0-9]*\\.[0-9]*" LD_VERSION ${LD_VERSION_LONG})
39    if(NOT ${LD_VERSION} STRLESS "2.22")
40        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -Wl,--copy-dt-needed-entries" )
41    endif()
42    
43  # Mute compile warnings (i.e. remove the -Wsomething compiler options).  # Mute compile warnings (i.e. remove the -Wsomething compiler options).
44  # Warnigns can be shown by adding -DPAMVMC_SHOW_WARNINGS=1 to the invocation of cmake.  # Warnigns can be shown by adding -DPAMVMC_SHOW_WARNINGS=1 to the invocation of cmake.

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23