Skip to content

Commit

Permalink
Allow easy changing of maxkmerlength from cmake command line
Browse files Browse the repository at this point in the history
For example, in brownie/build:
cmake -DMAXKMERLENGTH=75 ..
  • Loading branch information
gmiclotte committed Apr 20, 2016
1 parent 74f0752 commit 10e5bfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -18,7 +18,11 @@ endif(NOT CMAKE_BUILD_TYPE)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

# set some definitions
add_definitions("-DMAXKMERLENGTH=31")
if(MAXKMERLENGTH)
add_definitions("-DMAXKMERLENGTH=${MAXKMERLENGTH}")
else(MAXKMERLENGTH)
add_definitions("-DMAXKMERLENGTH=31")
endif(MAXKMERLENGTH)
add_definitions("-DCATEGORIES=2")
add_definitions("-DBROWNIE_MAJOR_VERSION=${${PROJECT_NAME}_MAJOR_VERSION}")
add_definitions("-DBROWNIE_MINOR_VERSION=${${PROJECT_NAME}_MINOR_VERSION}")
Expand Down

0 comments on commit 10e5bfc

Please sign in to comment.