diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e9d07fc4..2a1fa25a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,10 +22,6 @@ link_directories(${CMAKE_BINARY_DIR}/bittybuzz) # include(${INCLUDE_FILES_CMAKE}/BittyBuzzConfig.cmake) -if (BBZ_USE_FLOAT) - add_definitions(-DBBZ_USE_FLOAT=1) -endif (BBZ_USE_FLOAT) - # # Host compiler values # diff --git a/src/bittybuzz/config.h.in b/src/bittybuzz/config.h.in index e4ad18bb..70ab17a9 100644 --- a/src/bittybuzz/config.h.in +++ b/src/bittybuzz/config.h.in @@ -137,6 +137,11 @@ */ #cmakedefine BBZ_BYTEWISE_ASSIGNMENT +/** + * @brief Whether to floats + */ +#cmakedefine BBZ_USE_FLOAT + /** * @brief Whether to use floats for the neighbor's range and bearing * measurments.