mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
move FindSodium to builds/cmake/Modules
with the rest of the CMake modules
This commit is contained in:
parent
f8da0ac721
commit
5f8488de6d
@ -4,6 +4,8 @@ cmake_minimum_required (VERSION 2.8.12)
|
|||||||
project (ZeroMQ)
|
project (ZeroMQ)
|
||||||
|
|
||||||
list (INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}")
|
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)
|
include(CheckCXXCompilerFlag)
|
||||||
CHECK_CXX_COMPILER_FLAG("-std=gnu++11" COMPILER_SUPPORTS_CXX11)
|
CHECK_CXX_COMPILER_FLAG("-std=gnu++11" COMPILER_SUPPORTS_CXX11)
|
||||||
@ -165,9 +167,6 @@ else ()
|
|||||||
message (FATAL_ERROR "Invalid polling method")
|
message (FATAL_ERROR "Invalid polling method")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set (ZMQ_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/builds/cmake/Modules)
|
|
||||||
list (APPEND CMAKE_MODULE_PATH ${ZMQ_CMAKE_MODULES_DIR})
|
|
||||||
|
|
||||||
include (TestZMQVersion)
|
include (TestZMQVersion)
|
||||||
if (NOT CMAKE_CROSSCOMPILING)
|
if (NOT CMAKE_CROSSCOMPILING)
|
||||||
include (ZMQSourceRunChecks)
|
include (ZMQSourceRunChecks)
|
||||||
|
Loading…
Reference in New Issue
Block a user