mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
- compile flags for fuzzylite should not be arch-specific.
This commit is contained in:
parent
2a50d8d464
commit
9f0d3c9944
@ -46,6 +46,8 @@ set(FuzzyLite_lib_SRCS
|
||||
|
||||
add_library(FuzzyLite_lib STATIC ${FuzzyLite_lib_SRCS})
|
||||
|
||||
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
SET_TARGET_PROPERTIES(FuzzyLite_lib PROPERTIES COMPILE_FLAGS "-fPIC")
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
# This is more like a workaround. Gcc when linking VCAI fill keep
|
||||
# all symobls from FuzzyLite exposed to public. This triggers errors
|
||||
# when library is checked by analizers for issues
|
||||
# Correct solution is either make FuzzyLite symbols hidden or turn lib into dynamic
|
||||
SET_TARGET_PROPERTIES(FuzzyLite_lib PROPERTIES COMPILE_FLAGS "-fPIC")
|
||||
|
Loading…
x
Reference in New Issue
Block a user