From 54db7dfe5eb2b57f880a9b8abbdf418fb90e1f26 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 28 Feb 2019 14:45:22 +0100 Subject: [PATCH] Remove never used FindRngStream.cmake. --- tools/cmake/DefinePackages.cmake | 1 - tools/cmake/Modules/FindRngStream.cmake | 51 ------------------------- 2 files changed, 52 deletions(-) delete mode 100644 tools/cmake/Modules/FindRngStream.cmake diff --git a/tools/cmake/DefinePackages.cmake b/tools/cmake/DefinePackages.cmake index beea24848d..282087d6cc 100644 --- a/tools/cmake/DefinePackages.cmake +++ b/tools/cmake/DefinePackages.cmake @@ -1061,7 +1061,6 @@ set(CMAKE_SOURCE_FILES tools/cmake/Modules/FindLuaSimgrid.cmake tools/cmake/Modules/FindNS3.cmake tools/cmake/Modules/FindPAPI.cmake - tools/cmake/Modules/FindRngStream.cmake tools/cmake/Modules/FindValgrind.cmake tools/cmake/Option.cmake tools/cmake/scripts/fixup_simgrid_dtd_l.pl diff --git a/tools/cmake/Modules/FindRngStream.cmake b/tools/cmake/Modules/FindRngStream.cmake deleted file mode 100644 index 33e6429e55..0000000000 --- a/tools/cmake/Modules/FindRngStream.cmake +++ /dev/null @@ -1,51 +0,0 @@ -find_path(HAVE_RNGSTREAM_H - NAME RngStream.h - HINTS - $ENV{HOME} - PATH_SUFFIXES include - PATHS - /opt - /opt/local - /opt/csw - /sw - /usr - ) - -find_library(HAVE_RNGSTREAM_LIB - NAME rngstreams - HINTS - $ENV{HOME} - PATH_SUFFIXES lib64 lib lib32 - PATHS - /opt - /opt/local - /opt/csw - /sw - /usr - ) - -message(STATUS "Looking for RngStream.h") -if(HAVE_RNGSTREAM_H) - message(STATUS "Looking for RngStream.h - found") - string(REGEX MATCH "-I${HAVE_RNGSTREAM_H} " operation "${CMAKE_C_FLAGS}") - if(NOT operation) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${HAVE_RNGSTREAM_H} ") - endif() -else() - message(STATUS "Looking for RngStream.h - not found") -endif() - -message(STATUS "Looking for lib rngstreams") -if(HAVE_RNGSTREAM_LIB) - message(STATUS "Looking for lib rngstreams - found") - string(REGEX REPLACE "/librngstreams.*" "" HAVE_RNGSTREAM_LIB "${HAVE_RNGSTREAM_LIB}") - string(REGEX MATCH "-L${HAVE_RNGSTREAM_LIB} " operation "${CMAKE_C_FLAGS}") - if(NOT operation) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${HAVE_RNGSTREAM_LIB} ") - endif() -else() - message(STATUS "Looking for lib rngstreams - not found") -endif() - -mark_as_advanced(HAVE_RNGSTREAM_LIB) -mark_as_advanced(HAVE_RNGSTREAM_H) \ No newline at end of file -- 2.20.1