Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation with preprocessor metaprogramming #163

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ae1865e
Slicing operator now accepts any number of arguments (governed by BLI…
vukics Jul 3, 2018
03108f1
Merge branch 'master' of https://github.com/blitzpp/blitz
Apr 24, 2020
001d408
gitignore
Apr 24, 2020
4f5db0f
Merge branch 'master' of https://github.com/blitzpp/blitz
May 25, 2020
3d18c90
Enable serialization is not an option now, it gets enabled if Boost.S…
vukics Sep 1, 2020
a39b77e
Greatly simplified the content of the package, making configuration/b…
vukics Sep 7, 2020
a57fcc9
The compiler-dependent config mechanism is completely obsolate.
vukics Oct 2, 2020
d7dd82f
Adopted “modern cmake” – configuration now works and compilation also…
vukics Oct 5, 2020
2479054
_bz_typename => typename throughout
vukics Oct 6, 2020
254967f
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON) removes some boilerplate
vukics Oct 6, 2020
149f014
Pruned project tree
vukics Oct 6, 2020
6a3906e
Testing/installation/packaging off for the moment.
vukics Oct 6, 2020
d718f8d
BZ_DEBUG is now part of the interface in debug mode
vukics Oct 7, 2020
df1bffb
Testsuite now only if configured as self-standing project.
vukics Oct 8, 2020
3f5676d
Cleaner treatment of generated headers.
vukics Oct 9, 2020
e53c13e
git hash query now works
vukics Oct 12, 2020
84bef2f
Everyone just includes from the top directory.
vukics Oct 12, 2020
744da9b
Cleaner check for Boost::serialization
vukics Oct 14, 2020
22e6944
Added very simple install mechanism.
vukics Nov 13, 2020
89563d5
Switched to newest version of GetGitRevisionDescription
vukics Feb 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BZ_DEBUG is now part of the interface in debug mode
  • Loading branch information
vukics committed Oct 7, 2020
commit d718f8d8f1474eb541bed48c3efdb1c81346b2b8
6 changes: 6 additions & 0 deletions blitz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ if (Boost_SERIALIZATION_FOUND)
target_link_libraries(BlitzHeaders INTERFACE Boost::serialization)
endif()

string(TOLOWER ${CMAKE_BUILD_TYPE} cmake_build_type_tolower)
if (cmake_build_type_tolower STREQUAL "debug")
message(STATUS "Blitz debugging flag on")
target_compile_definitions(BlitzHeaders INTERFACE BZ_DEBUG)
endif()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in config.h)

macro(GENERATE_BLITZ_HEADER header prog var)
Expand Down