1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

added more information on how to catch overloaded virtuals

This commit is contained in:
Stephen Gaito 2019-06-28 17:09:18 +01:00
parent 356d3f103d
commit 1443001a99
4 changed files with 12 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
build
compile_commands.json
CMakeCache.txt
CMakeFiles/*
cmake_install.cmake

View File

@ -3,6 +3,7 @@
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build configuration (Debug, Release, RelWithDebInfo, MinSizeRel)")
project(pdf2htmlEX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
option(ENABLE_SVG "Enable SVG support, for generating SVG background images and converting Type 3 fonts" ON)
@ -70,12 +71,12 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
# generic flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Woverloaded-virtual")
# clang compiler need c++11 flag
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
#if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
#endif()
# CYGWIN or GCC 4.5.x bug
if(CYGWIN)

View File

@ -1,4 +1,4 @@
mkdir build
cd build
cmake ..
make install
make

4
dobuildClang Executable file
View File

@ -0,0 +1,4 @@
mkdir build
cd build
CC=clang CXX=clang++ cmake ..
make