mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
added more information on how to catch overloaded virtuals
This commit is contained in:
parent
356d3f103d
commit
1443001a99
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
build
|
||||||
|
compile_commands.json
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles/*
|
CMakeFiles/*
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build configuration (Debug, Release, RelWithDebInfo, MinSizeRel)")
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build configuration (Debug, Release, RelWithDebInfo, MinSizeRel)")
|
||||||
|
|
||||||
project(pdf2htmlEX)
|
project(pdf2htmlEX)
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
|
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)
|
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
|
# generic flags
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
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
|
# clang compiler need c++11 flag
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
#if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||||
endif()
|
#endif()
|
||||||
|
|
||||||
# CYGWIN or GCC 4.5.x bug
|
# CYGWIN or GCC 4.5.x bug
|
||||||
if(CYGWIN)
|
if(CYGWIN)
|
||||||
|
2
dobuild
2
dobuild
@ -1,4 +1,4 @@
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make install
|
make
|
||||||
|
4
dobuildClang
Executable file
4
dobuildClang
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
CC=clang CXX=clang++ cmake ..
|
||||||
|
make
|
Loading…
Reference in New Issue
Block a user