summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-26 13:32:56 -0600
committerGitHub <noreply@github.com>2019-03-26 13:32:56 -0600
commitf90f2567a0ef0bfed119c19d9281c8c5d68d78c3 (patch)
tree7c2a132113b0fd657cea1eed7fe96e7a5ba4f642 /src
parentfaf7ab378518b6ad8792603a41c641cb13b2ff83 (diff)
parentabf3a7a47d45ddad2a1bd69b176a4c471f65231d (diff)
Merge pull request #269 from foonathan/master
Fix cmake warning about CMP0048, again
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 468b0f0..10fcb1d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -59,7 +59,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmark_version.h.in
include (GenerateExportHeader)
add_executable(${PROGRAM} ${PROGRAM_SOURCES})
-add_compiler_export_flags()
# Disable the PUBLIC declarations when compiling the executable:
set_target_properties(${PROGRAM} PROPERTIES
@@ -72,12 +71,9 @@ set(CMAKE_LINKER_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG}")
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE} -pg")
set(CMAKE_LINKER_PROFILE "${CMAKE_LINKER_FLAGS_RELEASE} -pg")
-if (${CMAKE_VERSION} VERSION_GREATER "1.8")
- set(CMAKE_C_VISIBILITY_PRESET hidden)
- set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
-elseif(CMAKE_COMPILER_IS_GNUCC OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
-endif ()
+# -fvisibility=hidden
+set(CMAKE_C_VISIBILITY_PRESET hidden)
+set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
if (CMARK_SHARED)
add_library(${LIBRARY} SHARED ${LIBRARY_SOURCES})