Skip to content

Commit 36b1e4a

Browse files
committed
fixup: Cmake enable_lanuages version_less quoted versions
1 parent 31ab310 commit 36b1e4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/enable_languages.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ macro(flamegpu_enable_languages)
129129

130130
# Ensure that the found CUDA version is at least the minimum required by FLAMEGPU, otherwise raise an error.
131131
# Note: this is a breaking change to CMake behaviour (for docs-only builds), must set FLAMEGPU_GPU=OFF instead.
132-
if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS ${MINIMUM_SUPPORTED_CUDA_VERSION})
132+
if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "${MINIMUM_SUPPORTED_CUDA_VERSION}")
133133
message(FATAL_ERROR "CUDA ${MINIMUM_SUPPORTED_CUDA_VERSION} or greater is required for compilation with FLAMEGPU_GPU=${FLAMEGPU_GPU}")
134134
endif()
135135

@@ -154,7 +154,7 @@ macro(flamegpu_enable_languages)
154154
find_package(hip REQUIRED CONFIG)
155155

156156
# Ensure that the found HIP version is at least the minimum required by FLAMEGPU, otherwise raise an error.
157-
if (${hip_VERSION} VERSION_LESS ${MINIMUM_SUPPORTED_HIP_VERSION})
157+
if (${hip_VERSION} VERSION_LESS "${MINIMUM_SUPPORTED_HIP_VERSION}")
158158
message(FATAL_ERROR "HIP ${MINIMUM_SUPPORTED_HIP_VERSION} or greater is required for compilation with FLAMEGPU_GPU=${FLAMEGPU_GPU} (found ${hip_VERSION})")
159159
endif()
160160
endif()

0 commit comments

Comments
 (0)