Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function (add_mimick_test _NAME)

if (NOT MSVC)
foreach (ARG ${ARGN})
set_source_files_properties (${ARG} PROPERTIES COMPILE_FLAGS -O0)
set_source_files_properties (${ARG} PROPERTIES COMPILE_FLAGS "-O0 -Wp,-U_FORTIFY_SOURCE")
endforeach ()
endif ()

Expand Down
2 changes: 1 addition & 1 deletion sample/strdup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_executable (strdup_test test.c)
target_link_libraries (strdup_test strdup mimick)

if (NOT MSVC)
set_source_files_properties (test.c PROPERTIES COMPILE_FLAGS -O0)
set_source_files_properties (test.c PROPERTIES COMPILE_FLAGS "-O0 -Wp,-U_FORTIFY_SOURCE")
endif ()

add_mimick_sample (strdup_test)