+if(enable_sdt)
+ add_definitions(-DUSE_SDT)
+endif()
+
+if(enable_ust)
+ add_definitions(-DUSE_UST)
+endif()
+
+if(enable_model-checking AND enable_compile_optimizations)
+ # Forget it, do not optimize the code (because it confuses the MC):
+ set(optCFLAGS "-O0 ")
+ # But you can still optimize this:
+ foreach(s
+ src/xbt/mmalloc/mm.c
+ src/xbt/log.c src/xbt/xbt_log_appender_file.c
+ src/xbt/xbt_log_layout_format.c src/xbt/xbt_log_layout_simple.c
+ src/xbt/dict.c src/xbt/dict_elm.c src/xbt/dict_multi.c src/xbt/dict_cursor.c
+ src/xbt/set.c src/xbt/setset.c
+ src/xbt/dynar.c src/xbt/fifo.c src/xbt/heap.c src/xbt/swag.c
+ src/xbt/str.c src/xbt/strbuff.c src/xbt/snprintf.c
+ src/xbt/queue.c
+ src/xbt/xbt_os_time.c src/xbt/xbt_os_thread.c
+ src/xbt/sha.c
+ src/xbt/matrix.c
+ src/xbt/backtrace_linux.c
+ ${MC_SRC_BASE} ${MC_SRC})
+ set (mcCFLAGS "-O3 -funroll-loops -fno-strict-aliasing")
+ if(CMAKE_COMPILER_IS_GNUCC)
+ set (mcCFLAGS "${mcCFLAGS} -finline-functions")
+ endif()
+ set_source_files_properties(${s} PROPERTIES COMPILE_FLAGS ${mcCFLAGS})
+ endforeach()
+endif()
+