Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
fix: expose version for CMake
Browse files Browse the repository at this point in the history
Fixes #775
  • Loading branch information
klokane authored and kylef committed Mar 17, 2020
1 parent 32f5f87 commit d09d67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ find_package(cmdline 1.0 REQUIRED)
find_package(MPark.Variant 1.4 REQUIRED)
find_package(pegtl 2.8 REQUIRED)

add_definitions( -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} )

# drafter-dep
# we need it to:
# - expose INTERFACE_INCLUDE_DIRECTORIES for drafter-obj
Expand Down
1 change: 0 additions & 1 deletion src/drafter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ DRAFTER_API const char* drafter_version_string(void)
#if defined CMAKE_BUILD_TYPE
return DRAFTER_VERSION_STRING;
#else

return "Non-oficial drafter gyp-based build";
#endif
}

0 comments on commit d09d67b

Please sign in to comment.