Skip to content

Commit 41a2bc5

Browse files
committed
Fix debug build bug
1 parent 51ad679 commit 41a2bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(CMAKE_CXX_STANDARD 11)
1515
if(NOT BUILD_COMPILER)
1616
# Set complier identification
1717
SET(BUILD_COMPILER "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
18-
MESSAGE( STATUS "C Compiler: " ${BUILD_COMPILER} )
18+
MESSAGE( STATUS "C++ compiler: " ${BUILD_COMPILER} )
1919
endif()
2020

2121
# VERSION_INFO is defined by setup.py and passed into the C++
@@ -46,7 +46,7 @@ endif()
4646

4747
# Setting build type to "debug" add only -g
4848
if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
49-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG")
49+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
5050
endif()
5151

5252
# Set C++ flags

0 commit comments

Comments
 (0)