Skip to content

Commit 128eebc

Browse files
author
Felipe Torrezan
authored
Added fallback build type (#13)
1 parent f1ab30e commit 128eebc

20 files changed

Lines changed: 107 additions & 7 deletions

examples/mix-c-asm/430/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/8051/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/arm/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ project(Example1
77
VERSION 1.0.0
88
LANGUAGES C ASM )
99

10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/avr/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
914

1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files

examples/mix-c-asm/rh850/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/riscv/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ project(Example1
77
VERSION 1.0.0
88
LANGUAGES C ASM )
99

10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Set multiple configuration types for multi-config generators
1116
set(CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebInfo;Release;MinSizeRel")
1217

examples/mix-c-asm/rl78/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/rx/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/stm8/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

examples/mix-c-asm/v850/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ project(Example1
66
DESCRIPTION "Mixing C and Assembly"
77
VERSION 1.0.0
88
LANGUAGES C ASM )
9-
9+
10+
# Fallback option for generators other than `Ninja Multi-Config`
11+
if (NOT DEFINED CMAKE_BUILD_TYPE)
12+
set(CMAKE_BUILD_TYPE Debug)
13+
endif()
14+
1015
# Add the executable for the "mixLanguages" target,
1116
# specifying its source files
1217
add_executable(mixLanguages

0 commit comments

Comments
 (0)