# HG changeset patch # User Sebastien Jodogne # Date 1460370866 -7200 # Node ID 83a2431a455f34981f5872013ad1be8ad00ff0b5 # Parent 8c506670f3cd908321f90a43068087405c5e50cb fix for old version of mingw diff -r 8c506670f3cd -r 83a2431a455f Resources/CMake/Compiler.cmake --- a/Resources/CMake/Compiler.cmake Mon Apr 11 11:41:51 2016 +0200 +++ b/Resources/CMake/Compiler.cmake Mon Apr 11 12:34:26 2016 +0200 @@ -73,6 +73,11 @@ link_libraries(dl) endif() + CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) + if (NOT HAVE_UUID_H) + message(FATAL_ERROR "Please install the uuid-dev package") + endif() + elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") if (MSVC) message("MSVC compiler version = " ${MSVC_VERSION} "\n") @@ -125,6 +130,11 @@ ) link_libraries(iconv) + CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) + if (NOT HAVE_UUID_H) + message(FATAL_ERROR "Please install the uuid-dev package") + endif() + endif() @@ -144,17 +154,6 @@ endif() -if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") - CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) -else() - CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) -endif() - -if (NOT HAVE_UUID_H) - message(FATAL_ERROR "Please install the uuid-dev package") -endif() - - if (STATIC_BUILD) add_definitions(-DORTHANC_STATIC=1) else()