Skip to content

Commit

Permalink
Remove precompiled header from VS builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
scamille committed Sep 2, 2020
1 parent 626513d commit b8c4737
Show file tree
Hide file tree
Showing 11 changed files with 199 additions and 650 deletions.
3 changes: 1 addition & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,12 @@ ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]


# Regular expressions denoting the different #include categories used for ordering #includes.
# Give simulationcraft.hpp highest priority because of Visual Studio pre-compiled headers.
IncludeCategories:
- Regex: 'config\.hpp'
Priority: 5

- Regex: 'simulationcraft\.hpp'
Priority: -1
Priority: 30

- Regex: '^<.*\.h>'
Priority: 20
Expand Down
5 changes: 1 addition & 4 deletions lib/lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ win32|macx {
include(../source_files/QT_engine.pri)

# Fix paths in SOURCES, HEADERS, PRECOMPILED_HEADER, as they need to
# refer to parent directory for the respective subprojects. Additionally,
# simulationcraft.hpp must only be defined in PRECOMPILED_HEADER.
HEADERS -= engine/simulationcraft.hpp
# refer to parent directory for the respective subprojects.
HEADERS = $$replace(HEADERS, engine/, ../engine/)
SOURCES = $$replace(SOURCES, engine/, ../engine/)
PRECOMPILED_HEADER = $$replace(PRECOMPILED_HEADER, engine/, ../engine/)
Loading

0 comments on commit b8c4737

Please sign in to comment.