comparison Resources/CMake/Compiler.cmake @ 1416:037d5ffca74d

as needed for plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jun 2015 09:04:14 +0200
parents 0a67a502c90f
children 5ddbadd17cde
comparison
equal deleted inserted replaced
1415:728c22ade2e2 1416:037d5ffca74d
57 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 57 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
58 link_libraries(uuid pthread rt) 58 link_libraries(uuid pthread rt)
59 59
60 if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") 60 if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
61 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") 61 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
62 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed")
63 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")
62 add_definitions( 64 add_definitions(
63 -D_LARGEFILE64_SOURCE=1 65 -D_LARGEFILE64_SOURCE=1
64 -D_FILE_OFFSET_BITS=64 66 -D_FILE_OFFSET_BITS=64
65 ) 67 )
66 link_libraries(dl) 68 link_libraries(dl)