Skip to content

Commit

Permalink
Increase _FORTIFY_SOURCE level in CMakeLists.txt for enhanced security
Browse files Browse the repository at this point in the history
  • Loading branch information
absternator committed Feb 25, 2025
1 parent 6d4d04b commit 5d9c270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ endif()

# Compile CPU library
pybind11_add_module("${TARGET_NAME}" src/wtsne_cpu.cpp src/python_bindings.cpp)
# target_compile_definitions("${TARGET_NAME}" PRIVATE _FORTIFY_SOURCE=0)
target_compile_definitions("${TARGET_NAME}" PRIVATE _FORTIFY_SOURCE=2)

if(UNIX AND (NOT APPLE OR NOT CMAKE_COMPILER_IS_GNUCC))
set_target_properties("${TARGET_NAME}" PROPERTIES
Expand Down

0 comments on commit 5d9c270

Please sign in to comment.