Skip to content

Commit

Permalink
cmake changes from @germasch
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Germaschewski <kai.germaschewski@gmail.com>
  • Loading branch information
jrhemstad and germasch authored Aug 14, 2020
1 parent e610b88 commit 52e43a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
12 changes: 1 addition & 11 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ set(CMAKE_CXX_COMPILER $ENV{CXX})

if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")

option(CMAKE_CXX11_ABI "Enable the GLIBCXX11 ABI" ON)
if(CMAKE_CXX11_ABI)
message(STATUS "NVTX3: Enabling the GLIBCXX11 ABI")
else()
message(STATUS "NVTX3: Disabling the GLIBCXX11 ABI")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler -D_GLIBCXX_USE_CXX11_ABI=0")
endif(CMAKE_CXX11_ABI)
endif(CMAKE_COMPILER_IS_GNUCXX)

# Build options
Expand All @@ -63,7 +53,7 @@ option(BUILD_BENCHMARKS "Configure CMake to build (google) benchmarks" ON)
###################################################################################################
# - cmake modules ---------------------------------------------------------------------------------

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/" ${CMAKE_MODULE_PATH})
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")

include(FeatureSummary)
include(CheckIncludeFiles)
Expand Down
4 changes: 1 addition & 3 deletions cpp/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ project(NVTX_BENCHS LANGUAGES C CXX CUDA)
###################################################################################################
# - compiler options ------------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_COMPILER $ENV{tCC})
set(CMAKE_CXX_COMPILER $ENV{CXX})
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_CUDA_STANDARD 14)
Expand Down Expand Up @@ -60,4 +58,4 @@ set(NVTX_BENCH_SRC
ConfigureBench(NVTX_BENCH "${NVTX_BENCH_SRC}")


###################################################################################################
###################################################################################################

0 comments on commit 52e43a3

Please sign in to comment.