Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sassena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DAPHNE4NFDI
Sassena
Commits
fcb285e0
Commit
fcb285e0
authored
1 year ago
by
Daniel Vonk
Committed by
Daniel Vonk
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Generate SassenaConfig.h only once
parent
0bffda37
No related branches found
No related tags found
2 merge requests
!19
Merge develop into main
,
!13
Add CI System to Sassena and Modernize Build-System
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+30
-0
30 additions, 0 deletions
CMakeLists.txt
cmake/SassenaConfig.hpp.cmake
+0
-0
0 additions, 0 deletions
cmake/SassenaConfig.hpp.cmake
src/app/CMakeLists.txt
+0
-27
0 additions, 27 deletions
src/app/CMakeLists.txt
src/core/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/core/CMakeLists.txt
with
31 additions
and
28 deletions
CMakeLists.txt
+
30
−
0
View file @
fcb285e0
...
@@ -23,11 +23,41 @@ if(SASS_ENABLE_SANITIZERS)
...
@@ -23,11 +23,41 @@ if(SASS_ENABLE_SANITIZERS)
endif
()
endif
()
endif
()
endif
()
# Add the "-Werror" compiler flag to the specified target
function
(
add_werror target
)
if
(
NOT MSVC
)
target_compile_options
(
${
target
}
PRIVATE -Werror -Wno-error=deprecated-declarations -Wundef
)
check_cxx_compiler_flag
(
"-Werror -Wsuggest-override"
CXX_SUPPORTS_SUGGEST_OVERRIDE
)
if
(
CXX_SUPPORTS_SUGGEST_OVERRIDE
)
target_compile_options
(
${
target
}
PRIVATE
"-Wsuggest-override"
)
endif
()
# If we call directly -Wimplicit-fallthrough it's use it as a error ! not a warning
# we need to tell gcc that we can't want to manage it as error
# If code is ok we need to add [[fallthrough]]; before code
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
)
target_compile_options
(
${
target
}
PRIVATE -Wno-error=implicit-fallthrough -Wimplicit-fallthrough
)
endif
()
endif
()
endfunction
()
if
(
SASS_USE_WERROR
)
add_werror
(
SassenaCore
)
add_werror
(
sassena
)
endif
()
if
(
SASS_BUILD_DOCS
)
add_subdirectory
(
docs
)
endif
()
include
(
ExternalProject
)
include
(
ExternalProject
)
include
(
FeatureSummary
)
include
(
FeatureSummary
)
include
(
GenerateExportHeader
)
include
(
GenerateExportHeader
)
include
(
GNUInstallDirs
)
include
(
GNUInstallDirs
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
configure_file
(
cmake/SassenaConfig.hpp.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/generated/SassenaConfig.hpp @ONLY
)
if
(
USE_DEVELOPER_MODE
)
if
(
USE_DEVELOPER_MODE
)
find_package
(
Doxygen
)
find_package
(
Doxygen
)
set_package_properties
(
set_package_properties
(
...
...
This diff is collapsed.
Click to expand it.
src/app
/SassenaConfig.hpp.cmake
→
cmake
/SassenaConfig.hpp.cmake
+
0
−
0
View file @
fcb285e0
File moved
This diff is collapsed.
Click to expand it.
src/app/CMakeLists.txt
+
0
−
27
View file @
fcb285e0
configure_file
(
"SassenaConfig.hpp.cmake"
"SassenaConfig.hpp"
@ONLY
)
set
(
sassena_SRCS
s_stage.cpp
sassena.cpp
s_maketnx.cpp
)
set
(
common_SRCS
common.hpp
common.cpp
)
add_executable
(
sassena
add_executable
(
sassena
sassena.cpp
sassena.cpp
${
common_SRCS
}
)
)
add_executable
(
s_stage
add_executable
(
s_stage
s_stage.cpp
s_stage.cpp
${
common_SRCS
}
)
)
add_executable
(
s_maketnx
add_executable
(
s_maketnx
s_maketnx.cpp
s_maketnx.cpp
${
common_SRCS
}
)
)
# ADD_EXECUTABLE(unit_broadcast
# src/common.cpp
# tests/unit_broadcast.cpp
# )
target_link_libraries
(
sassena
target_link_libraries
(
sassena
PRIVATE
PRIVATE
SassenaCore
SassenaCore
...
@@ -54,5 +28,4 @@ TARGET_LINK_LIBRARIES (s_stage
...
@@ -54,5 +28,4 @@ TARGET_LINK_LIBRARIES (s_stage
SassenaCore
SassenaCore
)
)
install
(
TARGETS sassena s_maketnx s_stage
)
install
(
TARGETS sassena s_maketnx s_stage
)
This diff is collapsed.
Click to expand it.
src/core/CMakeLists.txt
+
1
−
1
View file @
fcb285e0
if
(
CRAY
)
if
(
CRAY
)
set
(
CMAKE_CXX_COMPILER /opt/cray/xt-asyncpe/3.7/bin/CC
)
set
(
CMAKE_CXX_COMPILER /opt/cray/xt-asyncpe/3.7/bin/CC
)
message
(
STATUS
"Cray is chosen."
)
message
(
STATUS
"Cray is chosen."
)
...
@@ -126,6 +125,7 @@ target_include_directories(
...
@@ -126,6 +125,7 @@ target_include_directories(
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/sample>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/sample>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/stager>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/stager>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/scatter_devices>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/scatter_devices>
$<BUILD_INTERFACE:
${
CMAKE_BINARY_DIR
}
/generated>
PRIVATE
PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/math
${
CMAKE_CURRENT_SOURCE_DIR
}
/math
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment