Skip to content

Commit 281f8d7

Browse files
committed
CMake: Ensure --expt-relaxed-constexpr is a pulic property as it is required by c++20 pyflamegpu
1 parent ccc7e5b commit 281f8d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/common.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function(flamegpu_common_compiler_settings)
174174
target_compile_options(${CCS_TARGET} PRIVATE "$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>,$<CONFIG:RelWithDebInfo>>>:-lineinfo>")
175175

176176
# Set an NVCC flag which allows host constexpr to be used on the device.
177-
target_compile_options(${CCS_TARGET} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr>")
177+
target_compile_options(${CCS_TARGET} PUBLIC "$<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr>")
178178

179179
# MSVC handling of SYSTEM for external includes, present in 19.10+
180180
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")

0 commit comments

Comments
 (0)