Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
oandreeva-nv committed Dec 20, 2023
1 parent 0f85f36 commit 10d9d4c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ project(tritoncommon LANGUAGES C CXX)
# C++ standard
set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard whose features are requested to build this target.")

if (NOT DEFINED CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS ${TRITON_MIN_CXX_STANDARD})
set(COMMON_CMAKE_CXX_STANDARD ${TRITON_MIN_CXX_STANDARD})
else()
set(COMMON_CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD})
endif()

#
# Options
#
Expand Down Expand Up @@ -65,7 +59,7 @@ endif()

add_library(common-compile-settings INTERFACE)

target_compile_features(common-compile-settings INTERFACE cxx_std_${COMMON_CMAKE_CXX_STANDARD})
target_compile_features(common-compile-settings INTERFACE cxx_std_${TRITON_MIN_CXX_STANDARD})

target_compile_options(common-compile-settings INTERFACE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
Expand Down

0 comments on commit 10d9d4c

Please sign in to comment.