From: ageay Date: Wed, 28 Nov 2012 16:16:15 +0000 (+0000) Subject: Activation of mmap on linux OS X-Git-Tag: V6_6_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4530e47de9a41dea716e6e8c0534c862f6d3aca4;p=tools%2Fmedcoupling.git Activation of mmap on linux OS --- diff --git a/src/INTERP_KERNEL/CMakeLists.txt b/src/INTERP_KERNEL/CMakeLists.txt index 8d9d2463a..02d8637bd 100644 --- a/src/INTERP_KERNEL/CMakeLists.txt +++ b/src/INTERP_KERNEL/CMakeLists.txt @@ -65,8 +65,13 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/GaussPoints ) +SET(PLATFORM_MMAP) +IF(NOT WINDOWS) + SET(PLATFORM_MMAP "-D_POSIX_MAPPED_FILES") +ENDIF(NOT WINDOWS) + ADD_LIBRARY(interpkernel SHARED ${interpkernel_SOURCES}) -SET_TARGET_PROPERTIES(interpkernel PROPERTIES COMPILE_FLAGS "${PLATFORM_DEFINITIONS}") +SET_TARGET_PROPERTIES(interpkernel PROPERTIES COMPILE_FLAGS "${PLATFORM_DEFINITIONS} ${PLATFORM_MMAP}") TARGET_LINK_LIBRARIES(interpkernel ${PLATFORM_LIBS}) INSTALL(TARGETS interpkernel DESTINATION ${MED_salomelib_LIBS})