Skip to content

Commit

Permalink
Pass -DCCPP_SINGLE_PRECISION from cmake to -DSINGLE_PREC in cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTrahanNOAA committed May 2, 2022
1 parent aff574b commit 527e1b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
endif()

if(CCPP_SINGLE_PREC)
message(STATUS "CCPP Single Precision Mode activated.")
add_definitions(SINGLE_PREC)
else(CCPP_SINGLE_PREC)
message(STATUS "CCPP Double Precision Mode activated.")
endif(CCPP_SINGLE_PREC)

#------------------------------------------------------------------------------
# Request a static build
option(BUILD_SHARED_LIBS "Build a shared library" OFF)
Expand Down

0 comments on commit 527e1b9

Please sign in to comment.