-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalized cmake stuff and updated smeka build
Now everything should be compliant. Both the cmake and the smeka builds should be compatible. The only difference is that smeka does not provide cmake targets for end-users. A large restructure of cmake files was done. Partially because I don't want this as a sub-project to inflict problems on the hosting code. I will test this momentarily with Siesta. Fixed some bugs for smeka installations. It should now produce the same tree-structure as CMake. Still need to check whether the dist works, but that should be done later. Signed-off-by: Nick Papior <[email protected]>
- Loading branch information
Showing
16 changed files
with
203 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.9.0 | ||
0.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@PACKAGE_INIT@ | ||
|
||
# Check that the fortran language is enabled | ||
check_language(Fortran) | ||
if( NOT CMAKE_Fortran_COMPILER ) | ||
message(FATAL_ERROR "fdict package requires Fortran language support") | ||
endif() | ||
# should we instead just enable it in the config file? | ||
|
||
|
||
# Define all the available components | ||
set(_valid_components | ||
INT8 | ||
INT16 | ||
REAL80 | ||
REAL128 | ||
LOG8 | ||
LOG16 | ||
LOG64 | ||
ISO_C | ||
ISO_ENV | ||
PURE_INTERFACE | ||
) | ||
|
||
|
||
string(TOUPPER PROJECT_NAME_UPPER "@PROJECT_NAME@") | ||
|
||
set_and_check(${PROJECT_NAME_UPPER}_FYPPFLAGS "@FYPPFLAGS@") | ||
|
||
set_and_check(${PROJECT_NAME_UPPER}_WITH_PURE_INTERFACE "@WITH_PURE_INTERFACE@") | ||
|
||
set_and_check(${PROJECT_NAME_UPPER}_WITH_INT8 "@WITH_INT8@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_INT16 "@WITH_INT16@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_REAL80 "@WITH_REAL80@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_REAL128 "@WITH_REAL128@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_LOG8 "@WITH_LOG8@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_LOG16 "@WITH_LOG16@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_LOG64 "@WITH_LOG64@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_ISO_C "@WITH_ISO_C@") | ||
set_and_check(${PROJECT_NAME_UPPER}_WITH_ISO_ENV "@WITH_ISO_ENV@") | ||
|
||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK "@MAXRANK@") | ||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK_INT "@MAXRANK_INT@") | ||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK_REAL "@MAXRANK_REAL@") | ||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK_CMPLX "@MAXRANK_CMPLX@") | ||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK_LOG "@MAXRANK_LOG@") | ||
set_and_check(${PROJECT_NAME_UPPER}_MAXRANK_ISO_C "@MAXRANK_ISO_C@") | ||
|
||
# Convert to components | ||
foreach(comp IN LISTS _valid_components) | ||
set(${PROJECT_NAME_UPPER}_${comp}_FOUND "${${PROJECT_NAME_UPPER}_WITH_${comp}}") | ||
endforeach() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
||
check_required_components(${PROJECT_NAME_UPPER}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.