generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Image I'm using:
Bottlerocket SDK 0.65.1
Issue or Feature Request:
Packages built with cross_cmake can't override CMAKE_BUILD_TYPE as the toolchain.cmake file takes precedence over -D overrides.
I'm trying to overide CMAKE_BUILD_TYPE like so:
%cross_cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
# ...some other optionsI patched the .cmake files of the sources I'm trying to build to print the actual value of CMAKE_BUILD_TYPE and I saw this message:
-- CMAKE_BUILD_TYPE: 'Release'
When I remove set(CMAKE_BUILD_TYPE Release) from the toolchain file, I see:
-- CMAKE_BUILD_TYPE: 'RelWithDebInfo'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels