mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
build: --as-needed doesn't work well for us with BUILD_SHARED_LIBS
This commit is contained in:
parent
58a8fce885
commit
6d5f8dcab5
@ -305,8 +305,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
|
||||
set(MSVC_USE_STATIC_RUNTIME ON CACHE BOOL "static build")
|
||||
else()
|
||||
if(CMAKE_EXE_LINKER_FLAGS MATCHES "--as-needed")
|
||||
message(FATAL_ERROR "DwarFS cannot be built with --as-needed")
|
||||
if(BUILD_SHARED_LIBS AND CMAKE_EXE_LINKER_FLAGS MATCHES "--as-needed")
|
||||
message(FATAL_ERROR "DwarFS cannot be built with `BUILD_SHARED_LIBS` and `--as-needed` enabled simultaneously.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user