Skip to content

Commit

Permalink
Fix Windows flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Sep 12, 2023
1 parent f1f0dec commit 394642b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,20 @@ target_link_libraries(litterer_static PRIVATE Threads::Threads)

foreach(OBJECT_SIZE IN ITEMS 16 32 64 128)
add_executable(microbenchmark-pages-${OBJECT_SIZE} microbenchmark-pages.cpp)
if(MSVC)
target_compile_options(microbenchmark-pages-${OBJECT_SIZE} PRIVATE /W4 /WX)
else()
target_compile_options(microbenchmark-pages-${OBJECT_SIZE} PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-volatile)
endif()
target_link_libraries(microbenchmark-pages-${OBJECT_SIZE} PRIVATE Threads::Threads)
target_compile_definitions(microbenchmark-pages-${OBJECT_SIZE} PRIVATE -DOBJECT_SIZE=${OBJECT_SIZE})

add_executable(microbenchmark-pages-litter-${OBJECT_SIZE} microbenchmark-pages.cpp)
target_compile_options(microbenchmark-pages-litter-${OBJECT_SIZE} PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-volatile)
if(MSVC)
target_compile_options(microbenchmark-pages-litter-${OBJECT_SIZE} PRIVATE /W4 /WX)
else()
target_compile_options(microbenchmark-pages-litter-${OBJECT_SIZE} PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-volatile)
endif()
target_link_libraries(microbenchmark-pages-litter-${OBJECT_SIZE} PRIVATE Threads::Threads)
target_compile_definitions(microbenchmark-pages-litter-${OBJECT_SIZE} PRIVATE -DLITTER -DOBJECT_SIZE=${OBJECT_SIZE})
endforeach()
Expand Down

0 comments on commit 394642b

Please sign in to comment.