Skip to content

Commit

Permalink
修复第三方依赖内的cmake错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Aug 1, 2022
1 parent 2ac4320 commit a92b9b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions third-party/lua-5.2.4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ else()
endif()

if(WIN32)
target_compile_definitions(lua51 PUBLIC -DLUA_BUILD_AS_DLL)
target_compile_definitions(lua52 PUBLIC -DLUA_BUILD_AS_DLL)
else()
target_compile_options(lua51 PUBLIC -fPIC)
target_compile_options(lua52 PUBLIC -fPIC)
endif(WIN32)

target_sources(lua52 PRIVATE
Expand Down
4 changes: 2 additions & 2 deletions third-party/lua-5.3.5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ else()
endif()

if(WIN32)
target_compile_definitions(lua51 PUBLIC -DLUA_BUILD_AS_DLL)
target_compile_definitions(lua53 PUBLIC -DLUA_BUILD_AS_DLL)
else()
target_compile_options(lua51 PUBLIC -fPIC)
target_compile_options(lua53 PUBLIC -fPIC)
endif(WIN32)

target_sources(lua53 PRIVATE
Expand Down
4 changes: 2 additions & 2 deletions third-party/lua-5.4.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ else()
endif()

if(WIN32)
target_compile_definitions(lua51 PUBLIC -DLUA_BUILD_AS_DLL)
target_compile_definitions(lua54 PUBLIC -DLUA_BUILD_AS_DLL)
else()
target_compile_options(lua51 PUBLIC -fPIC)
target_compile_options(lua54 PUBLIC -fPIC)
endif(WIN32)

target_sources(lua54 PRIVATE
Expand Down

0 comments on commit a92b9b6

Please sign in to comment.