mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-20 11:20:02 +00:00
CMake: Set default visibility to hidden and dllexport on windows
This commit is contained in:
1 parent
b44c917be9
commit
6405fd15e3
3 files changed
+18
No files matched your search
@@ -7,6 +7,11 @@ if(ENABLE_CJSON_TEST)
|
||||
if (werror_found)
|
||||
target_compile_options(unity PRIVATE "-Wno-error")
|
||||
endif()
|
||||
# Disable -fvisibility=hidden for Unity
|
||||
list(FIND custom_compiler_flags "-fvisibility=hidden" visibility_found)
|
||||
if (visibility_found)
|
||||
target_compile_options(unity PRIVATE "-fvisibility=default")
|
||||
endif()
|
||||
|
||||
#copy test files
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inputs")
|
||||
|
||||
Reference in new issue
Block a user