Changeset 19996


Ignore:
Timestamp:
09/24/20 18:01:11 (4 years ago)
Author:
tbretz
Message:
Added a warning to make users aware of an anaconda problem; improved some output; link openSSL::SSL explicitly to rootifysql and root2sql
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r19976 r19996  
    5454ENDIF()
    5555
     56# ===== Check for Anaconda =====
     57# Anacoda installation sometimes believe that they are the master of everything
     58# and change the users environment such that the build system or the executable
     59# loads, for example, anconda's libz rather than the system library. This might
     60# work but usually creates serious troubles either during linking or during
     61# execution.
     62
     63STRING(REPLACE ":" ";" PATHENV "$ENV{PATH}")
     64FOREACH (DIR ${PATHENV})
     65   IF(LDIR MATCHES .*anaconda.*)
     66        MESSAGE(WARNING "\n  WARNING: Anaconda is altering your PATH environent: " ${DIR} "\n  CMake, make or execution might fail, as non-system\n  libraries might be mistaken for system libraries!\n  Please make sure that there is no interference!")
     67        BREAK()
     68   ENDIF()
     69ENDFOREACH()
     70
     71
    5672# ======== For config.h.in =========
    5773SET(PACKAGE_MAINTAINER "Thomas Bretz")
     
    222238
    223239IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND Boost_VERSION LESS 106000 AND NOT NO_BOOST_HACK)
    224     MESSAGE(STATUS "  BOOST_REGEX_NO_EXTERNAL_TEMPLATES")
     240    MESSAGE(STATUS "Setting BOOST_REGEX_NO_EXTERNAL_TEMPLATES")
    225241    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_REGEX_NO_EXTERNAL_TEMPLATES=1")
    226242ENDIF()
     
    693709
    694710   ADD_EXECUTABLE(rootifysql src/rootifysql.cc)
    695    TARGET_LINK_LIBRARIES(rootifysql ${HELP++LIBS} ${ROOT_LIBRARIES})
     711   TARGET_LINK_LIBRARIES(rootifysql ${HELP++LIBS} OpenSSL::SSL ${ROOT_LIBRARIES})
    696712   MANPAGE(rootifysql "FACT++ - rootifysql - Write result of a SQL query into a root-file")
    697713   ADD_EXECUTABLE(root2sql src/root2sql.cc)
    698    TARGET_LINK_LIBRARIES(root2sql ${HELP++LIBS} ${ROOT_LIBRARIES})
     714   TARGET_LINK_LIBRARIES(root2sql ${HELP++LIBS} OpenSSL::SSL ${MYSQLPP_LIBRARY} ${ROOT_LIBRARIES})
    699715   MANPAGE(root2sql "FACT++ - root2sql - Fill contents of a root-tree into a MySQL database")
    700716
Note: See TracChangeset for help on using the changeset viewer.