Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Aug 13, 2024
1 parent 22e1bc9 commit 17a2732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ if(APPLE)
message("arm64Supported=${arm64Supported}")
endif ()

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(LuaParser)
add_subdirectory(CodeFormatCore)
add_subdirectory(Util)
Expand Down
4 changes: 0 additions & 4 deletions CodeFormatCSharpLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(CodeFormatCSharpLib
src/CodeFormat.cpp
)

if (NOT WIN32)
target_compile_options(CodeFormatCSharpLib PUBLIC -fPIC)
endif ()

target_link_libraries(CodeFormatCSharpLib PUBLIC CodeFormatCore)

0 comments on commit 17a2732

Please sign in to comment.