Skip to content

Commit

Permalink
made cmake compatible to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
MasWag committed Nov 12, 2019
1 parent 330b036 commit e2c70ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ set(VERSION_MAJOR 0)
set(VERSION_MINOR 5)
set(VERSION_PATCH 0)

add_compile_definitions(MONAA_VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
add_definitions("-DMONAA_VERSION=\"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}\"")
else()
add_compile_definitions(MONAA_VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
endif()

find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
Expand Down

0 comments on commit e2c70ce

Please sign in to comment.