Skip to content

Commit

Permalink
Add -fPIC compiler option to ClovaAPIs and GoogleAPIs CMake configura…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
royshil committed Dec 3, 2024
1 parent dfa8b8a commit 3fe1561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmake/BuildClovaAPIs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if(MSVC)
else()
target_compile_options(
clova-apis
PRIVATE -Wno-conversion
PRIVATE -fPIC
-Wno-conversion
-Wno-sign-conversion
-Wno-unused-parameter
-Wno-unused-variable
Expand Down
5 changes: 3 additions & 2 deletions cmake/BuildGoogleAPIs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ if(MSVC)
target_compile_options(google-apis PRIVATE /wd4244 /wd4267)
else()
target_compile_options(
clova-apis
PRIVATE -Wno-conversion
google-apis
PRIVATE -fPIC
-Wno-conversion
-Wno-sign-conversion
-Wno-unused-parameter
-Wno-unused-variable
Expand Down

0 comments on commit 3fe1561

Please sign in to comment.