Skip to content

Commit

Permalink
Build gtest libs with fPI/c flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Nov 6, 2024
1 parent 874b870 commit cd81911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/gtest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function(cxx_library_with_type name type cxx_flags)
add_library(${name} ${type} ${ARGN})
set_target_properties(${name}
PROPERTIES
POSITION_INDEPENDENT_CODE 1
COMPILE_FLAGS "${cxx_flags}")
if (BUILD_SHARED_LIBS OR type STREQUAL "SHARED")
set_target_properties(${name}
Expand Down

0 comments on commit cd81911

Please sign in to comment.