Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 75 additions & 6 deletions pkg/maker/contextlists.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"path"
"path/filepath"
"strings"
"unicode"

"github.com/Open-CMSIS-Pack/cbuild2cmake/pkg/utils"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -70,6 +71,7 @@ func (m *Maker) CreateContextCMakeLists(index int) error {
systemIncludes += "\nset(CMAKE_" + language + "_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_" + language + "_IMPLICIT_INCLUDE_DIRECTORIES})"
}
}
preprocessorOptions, compileMacros, compileMacroDependencies, compileMacroCommands := cbuild.PreprocessorOptions()

// Constructed files: collect headers and global pre-includes
constructedFiles := cbuild.ClassifyFiles(cbuild.BuildDescType.ConstructedFiles)
Expand Down Expand Up @@ -124,8 +126,7 @@ set(DPACK_DIR "` + cbuild.AddRootPrefix(cbuild.ContextRoot, cbuild.GetDpackDir()
set(OUT_DIR "` + outDir + `")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)` + outputByProducts + linkerVars + `
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)` + compileMacros + outputByProducts + linkerVars + `

# Processor Options` + cbuild.ProcessorOptions() + `

Expand All @@ -139,15 +140,15 @@ project(${CONTEXT} LANGUAGES ` + strings.Join(cbuild.Languages, " ") + `)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options` + preprocessorOptions + `

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS}` + compileMacroDependencies + `)
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
)` + systemIncludes + `
` + compileMacroCommands + systemIncludes + `

# Setup context
` + cmakeTargetType + `(${CONTEXT})
Expand Down Expand Up @@ -176,6 +177,74 @@ include("components.cmake")
return err
}

func (c *Cbuild) PreprocessorOptions() (options string, macros string, dependencies string, commands string) {
var commandLines string
for _, language := range c.Languages {
var languageOption string
var miscOptions []string
switch language {
case "C":
languageOption = "-xc"
miscOptions = append(c.BuildDescType.Misc.C, c.BuildDescType.Misc.CCPP...)
case "CXX":
languageOption = "-xc++"
miscOptions = append(c.BuildDescType.Misc.CPP, c.BuildDescType.Misc.CCPP...)
default:
continue
}
if c.Toolchain == "IAR" {
if language == "CXX" {
languageOption = "--c++"
} else {
languageOption = ""
}
}

options += "\nset(CPP_OPTIONS_" + language
if len(languageOption) > 0 {
options += " \"" + languageOption + "\""
}
for _, option := range miscOptions {
option = c.AdjustRelativePath(option)
for _, argument := range splitPreprocessorOption(option) {
argument = strings.ReplaceAll(argument, "\"", "\\\"")
options += " \"" + argument + "\""
}
}
options += ")"
macros += "\nset(COMPILE_MACROS_" + language + " ${OUT_DIR}/compile_macros_" + strings.ToLower(language) + ".h)"
dependencies += " ${COMPILE_MACROS_" + language + "}"
commandLines += "\n COMMAND ${CPP} ${CPP_OPTIONS_" + language + "} ${CPP_DUMP_MACROS} \"${COMPILE_MACROS_" + language + "}\""
}
if len(commandLines) > 0 {
commands = "add_custom_command(OUTPUT" + dependencies + commandLines + "\n)"
}
return options, macros, dependencies, commands
}

func splitPreprocessorOption(option string) []string {
var arguments []string
var argument strings.Builder
inQuotes := false
for _, character := range option {
if character == '"' {
inQuotes = !inQuotes
}
if unicode.IsSpace(character) && !inQuotes {
if argument.Len() > 0 {
arguments = append(arguments, argument.String())
argument.Reset()
}
continue
}
argument.WriteRune(character)
}
if argument.Len() > 0 {
arguments = append(arguments, argument.String())
}
return arguments
}

func (m *Maker) CMakeCreateToolchain(index int, contextDir string, inc bool) error {
toolchainConfig, _ := filepath.Rel(m.EnvVars.CompilerRoot, m.SelectedToolchainConfig[index])
toolchainConfig = "${CMSIS_COMPILER_ROOT}/" + filepath.ToSlash(toolchainConfig)
Expand Down
46 changes: 45 additions & 1 deletion pkg/maker/contextlists_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Arm Limited. All rights reserved.
* Copyright (c) 2026 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -26,4 +26,48 @@ func TestContextLists(t *testing.T) {
assert.Nil(err)
}
})

t.Run("test preprocessor options", func(t *testing.T) {
var cbuild maker.Cbuild
cbuild.Languages = []string{"ASM", "C", "CXX"}
cbuild.BuildDescType.Misc = maker.Misc{
C: []string{"-c-option"},
CPP: []string{"-cxx-option"},
CCPP: []string{"-common-option"},
}

options, macros, dependencies, commands := cbuild.PreprocessorOptions()
assert.Contains(options, "set(CPP_OPTIONS_C \"-xc\" \"-c-option\" \"-common-option\")")
assert.Contains(options, "set(CPP_OPTIONS_CXX \"-xc++\" \"-cxx-option\" \"-common-option\")")
assert.Equal("\nset(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)\nset(COMPILE_MACROS_CXX ${OUT_DIR}/compile_macros_cxx.h)", macros)
assert.Equal(" ${COMPILE_MACROS_C} ${COMPILE_MACROS_CXX}", dependencies)
assert.Equal("add_custom_command(OUTPUT ${COMPILE_MACROS_C} ${COMPILE_MACROS_CXX}\n COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} \"${COMPILE_MACROS_C}\"\n COMMAND ${CPP} ${CPP_OPTIONS_CXX} ${CPP_DUMP_MACROS} \"${COMPILE_MACROS_CXX}\"\n)", commands)
assert.NotContains(options+macros+dependencies+commands, "ASM")
})

t.Run("test preprocessor options with spaces", func(t *testing.T) {
var cbuild maker.Cbuild
cbuild.Languages = []string{"C"}
cbuild.BuildDescType.Misc = maker.Misc{
C: []string{`-DTEST=1 -include "path with spaces/header.h" -Wall`},
}

options, _, _, _ := cbuild.PreprocessorOptions()
assert.Contains(options, `set(CPP_OPTIONS_C "-xc" "-DTEST=1" "-include" "\"path with spaces/header.h\"" "-Wall")`)
})

t.Run("test IAR preprocessor options", func(t *testing.T) {
var cbuild maker.Cbuild
cbuild.Toolchain = "IAR"
cbuild.Languages = []string{"C", "CXX"}
cbuild.BuildDescType.Misc = maker.Misc{
C: []string{"--c-option"},
CPP: []string{"--cxx-option"},
}

options, _, _, _ := cbuild.PreprocessorOptions()
assert.Contains(options, "set(CPP_OPTIONS_C \"--c-option\")")
assert.Contains(options, "set(CPP_OPTIONS_CXX \"--c++\" \"--cxx-option\")")
assert.NotContains(options, "-xc")
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/GCC")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/ARMCM0_gcc.ld")
set(LD_SCRIPT_PP ${LD_SCRIPT})

Expand All @@ -30,14 +30,17 @@ project(${CONTEXT} LANGUAGES C)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-masm-syntax-unified" "-fomit-frame-pointer" "-ffunction-sections" "-fdata-sections")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project X/ARMCM0 X/AC6 X")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/ARMCM0_ac6.sct")
set(LD_SCRIPT_PP ${LD_SCRIPT})

Expand All @@ -30,14 +30,17 @@ project(${CONTEXT} LANGUAGES C)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-Wno-macro-redefined" "-Wno-pragma-pack" "-Wno-parentheses-equality" "-Wno-license-management")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/AC6")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/ARMCM0_ac6.sct")
set(LD_SCRIPT_PP ${LD_SCRIPT})

Expand All @@ -30,14 +30,17 @@ project(${CONTEXT} LANGUAGES C ASM)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-Wno-macro-redefined" "-Wno-pragma-pack" "-Wno-parentheses-equality" "-Wno-license-management")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/CLANG")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/clang_linker_script.ld.src")
set(LD_REGIONS "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/regions_ARMCM0.h")
set(LD_SCRIPT_PP "${CMAKE_CURRENT_BINARY_DIR}/clang_linker_script.ld")
Expand All @@ -31,14 +31,17 @@ project(${CONTEXT} LANGUAGES C ASM)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-fomit-frame-pointer" "-ffunction-sections" "-fdata-sections")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/GCC")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/ARMCM0_gcc.ld")
set(LD_SCRIPT_PP ${LD_SCRIPT})

Expand All @@ -30,14 +30,17 @@ project(${CONTEXT} LANGUAGES C ASM)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-masm-syntax-unified" "-fomit-frame-pointer" "-ffunction-sections" "-fdata-sections")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/IAR")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/iar_linker_script.icf.src")
set(LD_REGIONS "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/regions_ARMCM0.h")
set(LD_SCRIPT_PP "${CMAKE_CURRENT_BINARY_DIR}/iar_linker_script.icf")
Expand All @@ -31,14 +31,17 @@ project(${CONTEXT} LANGUAGES C ASM)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "--dlib_config" "DLib_Config_Full.h")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(OUT_DIR "${SOLUTION_ROOT}/out/project/ARMCM0/AC6")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COMPILE_COMMANDS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
set(COMPILE_COMMANDS ${OUT_DIR}/compile_commands.json)
set(COMPILE_MACROS ${OUT_DIR}/compile_macros.h)
set(COMPILE_MACROS_C ${OUT_DIR}/compile_macros_c.h)
set(LD_SCRIPT "${SOLUTION_ROOT}/project/RTE/Device/ARMCM0/ARMCM0_ac6.sct")
set(LD_SCRIPT_PP ${LD_SCRIPT})

Expand All @@ -30,14 +30,17 @@ project(${CONTEXT} LANGUAGES C)
# Enable color diagnostics
set(CMAKE_COLOR_DIAGNOSTICS ON)

# Preprocessor options
set(CPP_OPTIONS_C "-xc" "-std=gnu11" "-Wno-macro-redefined" "-Wno-pragma-pack" "-Wno-parentheses-equality" "-Wno-license-management")

# Compilation database
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS})
add_custom_target(database DEPENDS ${COMPILE_COMMANDS} ${COMPILE_MACROS_C})
add_custom_command(OUTPUT ${COMPILE_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_COMPILE_COMMANDS}" "${COMPILE_COMMANDS}"
DEPENDS "${CMAKE_COMPILE_COMMANDS}"
)
add_custom_command(OUTPUT ${COMPILE_MACROS}
COMMAND ${CPP} ${CPP_DUMP_MACROS}
add_custom_command(OUTPUT ${COMPILE_MACROS_C}
COMMAND ${CPP} ${CPP_OPTIONS_C} ${CPP_DUMP_MACROS} "${COMPILE_MACROS_C}"
)
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})

Expand Down
Loading
Loading