comparison Resources/CMake/Compiler.cmake @ 1336:a80e811ec619

fix unneeded complexity
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Mar 2015 16:18:46 +0200
parents 4bed63189508
children afaa55d42ddd
comparison
equal deleted inserted replaced
1335:4bed63189508 1336:a80e811ec619
59 # Remove the "-rdynamic" option 59 # Remove the "-rdynamic" option
60 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html 60 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
61 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 61 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
62 link_libraries(uuid pthread rt dl) 62 link_libraries(uuid pthread rt dl)
63 63
64 find_path(LIBUUID_INCLUDE_DIR uuid.h
65 /usr/include
66 /usr/include/uuid
67 )
68 message("libuuid include dir: ${LIBUUID_INCLUDE_DIR}")
69 include_directories(${LIBUUID_INCLUDE_DIR})
70
71 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 64 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
72 add_definitions( 65 add_definitions(
73 -DWINVER=0x0501 66 -DWINVER=0x0501
74 -D_CRT_SECURE_NO_WARNINGS=1 67 -D_CRT_SECURE_NO_WARNINGS=1
75 ) 68 )
90 83
91 84
92 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 85 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
93 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) 86 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H)
94 else() 87 else()
95 CHECK_INCLUDE_FILES(uuid.h HAVE_UUID_H) 88 CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H)
96 endif() 89 endif()
97 90
98 if (NOT HAVE_UUID_H) 91 if (NOT HAVE_UUID_H)
99 message(FATAL_ERROR "Please install the uuid-dev package") 92 message(FATAL_ERROR "Please install the uuid-dev package")
100 endif() 93 endif()