Fix to building libzmq with CMake as sub-project (git submodule).

This commit is contained in:
Tommy Back 2013-03-13 20:27:49 +01:00
parent 601eedb7f3
commit c69e79706e

View File

@ -27,7 +27,7 @@ if(NOT ${POLLER} STREQUAL "")
set(ZMQ_FORCE_${UPPER_POLLER} 1)
endif()
set(ZMQ_CMAKE_MODULES_DIR ${CMAKE_SOURCE_DIR}/cmake/Modules)
set(ZMQ_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
list(APPEND CMAKE_MODULE_PATH ${ZMQ_CMAKE_MODULES_DIR})
include(TestZMQVersion)