Skip to content

Commit

Permalink
Merge pull request #30 from deephealthproject/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
MicheleCancilla authored Mar 2, 2021
2 parents ae8f9f3 + 82b8d48 commit 35a99b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ if(NOT COMPILER_SUPPORTS_CXX17)
endif()

set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

#--------------------------------------------------------------------------------------------------------
# END: Check for c++17 support
#--------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -188,15 +184,19 @@ if(ECVL_GPU_AVAILABLE)
else()
target_link_libraries(ECVL_CORE PUBLIC CUDA::cudart_static)
endif()

# Enable cuda14 features
target_compile_features(ECVL_CORE PUBLIC cuda_std_14)

set_target_properties(ECVL_CORE PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
CUDA_RESOLVE_DEVICE_SYMBOLS ON
)
endif()

# Enable c++17 features
target_compile_features(ECVL_CORE PUBLIC cxx_std_17)

# Enable link of stdc++fs library
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT APPLE)
target_link_libraries(ECVL_CORE PUBLIC stdc++fs)
Expand Down

0 comments on commit 35a99b7

Please sign in to comment.