Skip to content

Commit 2119417

Browse files
authored
Set default debug postfix if not specified (#266)
Co-authored-by: Josef <[email protected]>
1 parent f941e36 commit 2119417

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
cmake_minimum_required(VERSION 3.18) # 3.18 To automatically detect CUDA_ARCHITECTURES
22
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CUDA_STANDARD 17)
4+
45
# Build Release by default; CMAKE_BUILD_TYPE needs to be set before project(...)
56
if(NOT CMAKE_BUILD_TYPE)
67
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
78
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel" FORCE)
89
endif(NOT CMAKE_BUILD_TYPE)
10+
11+
# Use debug postfix 'd' by default.
12+
if(NOT CMAKE_DEBUG_POSTFIX)
13+
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING
14+
"Choose the debug postfix used when building Debug configuration")
15+
endif()
16+
917
project(RobotecGPULidar C CXX CUDA)
1018

1119
# Logging default settings (can be changed via API call)

0 commit comments

Comments
 (0)