Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Linux CI. #1562

Merged
merged 1 commit into from
Feb 5, 2024
Merged
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
8 changes: 7 additions & 1 deletion cmake/PlasmaTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ cmake_dependent_option(
OFF
)

# CMake 3.28.2 breaks precompiled headers and unity builds.
# Debounce this known bad combination.
if(CMAKE_VERSION VERSION_EQUAL 3.28.2 AND PLASMA_USE_PCH AND CMAKE_GENERATOR MATCHES Ninja|Makefiles)
set(_UNITY_BROKEN TRUE)
endif()

cmake_dependent_option(
PLASMA_UNITY_BUILD
"Enable unity build?"
ON
"CMAKE_VERSION VERSION_GREATER_EQUAL 3.16;ALLOW_BUILD_OPTIMIZATIONS"
"CMAKE_VERSION VERSION_GREATER_EQUAL 3.16;ALLOW_BUILD_OPTIMIZATIONS;NOT _UNITY_BROKEN"
OFF
)

Expand Down
Loading