mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
increased warnings to catch overloaded-virtuals - integrated clang and clang-tools to provide alternate collections of warnings
This commit is contained in:
parent
b9c9950191
commit
d091550e59
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
build
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles/*
|
CMakeFiles/*
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# leave this above project(pdf2htmlEX)
|
# leave this above project(pdf2htmlEX)
|
||||||
# set default build type to Release
|
# set default build type to Release
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS, ON)
|
|
||||||
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)
|
||||||
@ -71,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