Skip to content

Commit 128eebc

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

20 files changed

+107
-7
lines changed

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

examples/using-libs/430/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/8051/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/arm/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/avr/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/rh850/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/riscv/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/rl78/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/rx/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/stm8/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

examples/using-libs/v850/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ project (Example2
55
VERSION 1.0.0
66
LANGUAGES C )
77

8+
# Fallback option for generators other than `Ninja Multi-Config`
9+
if (NOT DEFINED CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE Debug)
11+
endif()
12+
813
# Enable CTest
914
enable_testing()
1015

0 commit comments

Comments
 (0)