Skip to content

Commit

Permalink
add definitions to not use experimental/any on mac platform (#276)
Browse files Browse the repository at this point in the history
* add definitions to not use experimental/any on mac platform

* add compile def to core to not use experimental/any on mac builds
  • Loading branch information
phlptp authored Apr 23, 2018
1 parent 7a97e99 commit 4bafb0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helics/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,9 @@ if (HELICS_HAVE_ZEROMQ)
target_include_directories (helics_common PRIVATE "${ZeroMQ_INCLUDE_DIR}")
endif(HELICS_HAVE_ZEROMQ)

if (APPLE)
target_compile_definitions(helics_common PUBLIC "-DSTX_NO_STD_ANY=1")
endif(APPLE)

install(FILES ${helics_public_common} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/helics/common COMPONENT headers)

4 changes: 4 additions & 0 deletions src/helics/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ IF (VERSION_OPTION)
ENDIF (MSVC)
ENDIF(VERSION_OPTION)

if (APPLE)
target_compile_definitions(helics_core PUBLIC "-DSTX_NO_STD_ANY=1")
endif(APPLE)

if (${MPI_C_FOUND})
source_group("mpi" FILES ${MPI_SOURCE_FILES} ${MPI_HEADER_FILES})
endif (${MPI_C_FOUND})
Expand Down

0 comments on commit 4bafb0e

Please sign in to comment.