Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set will fail property for stack overoflow on win and osx
[simgrid.git] / teshsuite / simix / stack_overflow / CMakeLists.txt
1 add_executable       (stack_overflow stack_overflow.c)
2 target_link_libraries(stack_overflow simgrid)
3
4 if(release AND (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
5   foreach (factory raw thread ucontext)
6     string (TOUPPER have_${factory}_contexts VARNAME)
7     if (${VARNAME})
8       SET_TESTS_PROPERTIES(stack-overflow-${factory} PROPERTIES WILL_FAIL true)
9     endif()
10   endforeach()
11 endif()
12
13 ADD_TESH_FACTORIES(stack-overflow "thread;ucontext;raw" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simix/stack_overflow --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simix/stack_overflow stack_overflow.tesh)
14
15 set(tesh_files     ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.tesh          PARENT_SCOPE)
16 set(xml_files      ${xml_files}      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.xml
17                                      ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow_platform.xml  PARENT_SCOPE)
18 set(teshsuite_src  ${teshsuite_src}  ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.c             PARENT_SCOPE)