Skip to content

Commit 861c9c5

Browse files
committed
Addition of the file modules.cmake that contains the rules for modularization
1 parent b03a229 commit 861c9c5

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

CMakeLists.txt

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,24 @@ if(NOT DEFINED CMAKE_MAXIMUM_RANK)
4949
set(CMAKE_MAXIMUM_RANK 4 CACHE STRING "Maximum array rank for generated procedures")
5050
endif()
5151

52-
option(STDLIB_NO_BITSET "Does not compile STDLIB BITSET" OFF)
53-
54-
if(STDLIB_NO_BITSET)
55-
message(STATUS "Disable stdlib bitset module")
56-
add_compile_definitions(STDLIB_NO_BITSET)
57-
endif()
58-
59-
option(STDLIB_NO_HASHMAP "Does not compile STDLIB HASHMAP" OFF)
60-
61-
if(STDLIB_NO_HASHMAP)
62-
message(STATUS "Disable stdlib hashmap module")
63-
add_compile_definitions(STDLIB_NO_HASHMAP)
64-
endif()
52+
include(config/modules.cmake)
53+
#option(STDLIB_BITSET "Does compile STDLIB BITSET" ON)
54+
#
55+
#if(STDLIB_BITSET)
56+
# message(STATUS "Enable stdlib bitset module")
57+
#else()
58+
# message(STATUS "Disable stdlib bitset module")
59+
# add_compile_definitions(STDLIB_NO_BITSET)
60+
#endif()
61+
#
62+
#option(STDLIB_HASHMAP "Does compile STDLIB HASHMAP" ON)
63+
#
64+
#if(STDLIB_HASHMAP)
65+
# message(STATUS "Enable stdlib hashmap module")
66+
#else()
67+
# message(STATUS "Disable stdlib hashmap module")
68+
# add_compile_definitions(STDLIB_NO_HASHMAP)
69+
#endif()
6570

6671
option(FIND_BLAS "Find external BLAS and LAPACK" ON)
6772

config/modules.cmake

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# BITSET
2+
option(STDLIB_BITSET "Does compile STDLIB BITSET" ON)
3+
4+
if(STDLIB_BITSET)
5+
message(STATUS "Enable stdlib bitset module")
6+
else()
7+
message(STATUS "Disable stdlib bitset module")
8+
add_compile_definitions(STDLIB_NO_BITSET)
9+
endif()
10+
11+
# HASHMAP
12+
option(STDLIB_HASHMAP "Does compile STDLIB HASHMAP" ON)
13+
14+
if(STDLIB_HASHMAP)
15+
message(STATUS "Enable stdlib hashmap module")
16+
else()
17+
message(STATUS "Disable stdlib hashmap module")
18+
add_compile_definitions(STDLIB_NO_HASHMAP)
19+
endif()
20+

0 commit comments

Comments
 (0)