Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif(NOT CMAKE_BUILD_TYPE)
Expand Down
2 changes: 2 additions & 0 deletions cmake/functions.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# ——— Helper function to add & register tests —————————————————————————
include_guard()

function(ppc_add_test test_name test_src USE_FLAG)
if(${USE_FLAG})
add_executable(${test_name} "${PROJECT_SOURCE_DIR}/${test_src}")
Expand Down
2 changes: 2 additions & 0 deletions cmake/gtest.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

include(ExternalProject)

ExternalProject_Add(
Expand Down
2 changes: 2 additions & 0 deletions cmake/json.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

include(ExternalProject)

ExternalProject_Add(
Expand Down
2 changes: 2 additions & 0 deletions cmake/libenvpp.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

include(ExternalProject)
ExternalProject_Add(
ppc_libenvpp
Expand Down
2 changes: 2 additions & 0 deletions cmake/modes.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

add_compile_definitions(PPC_PATH_TO_PROJECT="${CMAKE_CURRENT_SOURCE_DIR}")

macro(SUBDIRLIST result curdir)
Expand Down
2 changes: 2 additions & 0 deletions cmake/mpi.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

find_package(MPI REQUIRED COMPONENTS CXX)
if(NOT MPI_FOUND)
message(FATAL_ERROR "MPI NOT FOUND")
Expand Down
2 changes: 2 additions & 0 deletions cmake/onetbb.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

include(ExternalProject)

option(ENABLE_SYSTEM_TBB "Use system TBB instead of bundled version" OFF)
Expand Down
2 changes: 2 additions & 0 deletions cmake/openmp.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

if(MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
set(OpenMP_C_FLAGS
"/openmp:llvm"
Expand Down
2 changes: 2 additions & 0 deletions cmake/sanitizers.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

option(ENABLE_ADDRESS_SANITIZER OFF)
option(ENABLE_UB_SANITIZER OFF)
option(ENABLE_LEAK_SANITIZER OFF)
Expand Down
2 changes: 2 additions & 0 deletions cmake/scoreboard.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

option(USE_SCOREBOARD OFF)
if(USE_SCOREBOARD)
find_package(Python REQUIRED COMPONENTS Interpreter)
Expand Down
2 changes: 2 additions & 0 deletions cmake/sphinx.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

option(USE_DOCS OFF)
if(USE_DOCS)
set(SPHINXBUILD "sphinx-build")
Expand Down
2 changes: 2 additions & 0 deletions cmake/stb.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include_guard()

function(ppc_link_stb exec_func_lib)
add_library(stb_image STATIC
${CMAKE_SOURCE_DIR}/3rdparty/stb_image_wrapper.cpp)
Expand Down
Loading