Skip to content

Commit 42debfa

Browse files
authored
Merge pull request #118 from aminya/colcon
2 parents 39930d0 + fd48f91 commit 42debfa

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ enableGlobDot: true
1212
words:
1313
- aarch
1414
- aminya
15+
- Amnet
1516
- anotherproj
1617
- applellvm
1718
- ARGN

src/Common.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ macro(common_project_options)
4343
endif()
4444
endif()
4545

46+
# Fix for Amnet/Colcon
47+
if(NOT
48+
"${AMENT_PREFIX_PATH}"
49+
STREQUAL
50+
""
51+
OR "$ENV{COLCON}" STREQUAL "1")
52+
# these are used in order:
53+
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "RelWithDebInfo;Release;None;NoConfig")
54+
endif()
55+
4656
# Generate compile_commands.json to make it easier to work with clang based tools
4757
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
4858

0 commit comments

Comments
 (0)