From 5f8488de6d42f586039dbdeff39c5ff7d9e43c83 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 12 Jan 2018 16:27:24 -0800 Subject: [PATCH] move FindSodium to builds/cmake/Modules with the rest of the CMake modules --- CMakeLists.txt | 5 ++--- FindSodium.cmake => builds/cmake/Modules/FindSodium.cmake | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename FindSodium.cmake => builds/cmake/Modules/FindSodium.cmake (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe67c670..55e42343 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ cmake_minimum_required (VERSION 2.8.12) project (ZeroMQ) list (INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}") +set (ZMQ_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/builds/cmake/Modules) +list (APPEND CMAKE_MODULE_PATH ${ZMQ_CMAKE_MODULES_DIR}) include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=gnu++11" COMPILER_SUPPORTS_CXX11) @@ -165,9 +167,6 @@ else () message (FATAL_ERROR "Invalid polling method") endif () -set (ZMQ_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/builds/cmake/Modules) -list (APPEND CMAKE_MODULE_PATH ${ZMQ_CMAKE_MODULES_DIR}) - include (TestZMQVersion) if (NOT CMAKE_CROSSCOMPILING) include (ZMQSourceRunChecks) diff --git a/FindSodium.cmake b/builds/cmake/Modules/FindSodium.cmake similarity index 100% rename from FindSodium.cmake rename to builds/cmake/Modules/FindSodium.cmake