Skip to content

Commit

Permalink
Add more specific compile options for Unix platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Khrysys committed Nov 5, 2023
1 parent 8abcadb commit f555daf
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 @@ -83,7 +83,7 @@ if(BUILD_SHARED_LIBS)
target_compile_definitions(${CORE_LIB_NAME} PRIVATE DRAGON_CORE_BUILD_DLL)

if(UNIX)
target_link_options(${CORE_LIB_NAME} PUBLIC -fPIC)
target_link_options(${CORE_LIB_NAME} PUBLIC --Wall -Werror -fpic)
endif()
endif()

Expand Down

0 comments on commit f555daf

Please sign in to comment.