Skip to content

Commit f39b7c9

Browse files
committed
Improved bounds check message.
1 parent e3122a0 commit f39b7c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cmake/CMakeBasics.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
set(CMAKE_ENABLE_EXPORTS ON)
22

33
if( CMAKE_BUILD_TYPE MATCHES "Debug" )
4-
message( "Bounds Checking Enabled" )
54
option( LVARRAY_BOUNDS_CHECK "" ON )
65
else()
76
option( LVARRAY_BOUNDS_CHECK "" OFF )

cmake/Config.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ if( USE_ADDR2LINE )
2525
set( LVARRAY_ADDR2LINE_EXEC ${ADDR2LINE_EXEC} )
2626
endif()
2727

28+
if( DEFINED LVARRAY_BOUNDS_CHECK )
29+
message( STATUS "LvArray bounds checking enabled." )
30+
else()
31+
message( STATUS "LvArray bounds checking disabled." )
32+
endif()
33+
2834
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/LvArrayConfig.hpp.in
2935
${CMAKE_BINARY_DIR}/include/LvArrayConfig.hpp )
3036

0 commit comments

Comments
 (0)