File tree Expand file tree Collapse file tree 11 files changed +13
-13
lines changed Expand file tree Collapse file tree 11 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ to generate a template ``CMakeLists.txt.try`` file:
67
67
list(APPEND sources_list Cavity.cpp Element.cpp GePolCavity.cpp RestartCavity.cpp)
68
68
69
69
add_library(cavity OBJECT ${sources_list} ${headers_list})
70
- set_target_properties(cavity PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
70
+ set_target_properties(cavity PROPERTIES POSITION_INDEPENDENT_CODE 1 )
71
71
set_property(GLOBAL APPEND PROPERTY PCMSolver_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR})
72
72
# Sets install directory for all the headers in the list
73
73
foreach(_header ${headers_list})
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ list(APPEND headers_list CollocationIntegrator.hpp IntegratorForward.hpp Integra
5
5
list (APPEND sources_list )
6
6
7
7
add_library (bi_operators OBJECT ${headers_list} ${sources_list} )
8
- set_target_properties (bi_operators PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
8
+ set_target_properties (bi_operators PROPERTIES POSITION_INDEPENDENT_CODE 1 )
9
9
add_dependencies (bi_operators generate-config-hpp)
10
10
# Sets install directory for all the headers in the list
11
11
foreach (_header ${headers_list} )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ list(APPEND headers_list Cavity.hpp CavityData.hpp Element.hpp GePolCavity.hpp R
5
5
list (APPEND sources_list Cavity.cpp Element.cpp GePolCavity.cpp RestartCavity.cpp)
6
6
7
7
add_library (cavity OBJECT ${sources_list} ${headers_list} )
8
- set_target_properties (cavity PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
8
+ set_target_properties (cavity PROPERTIES POSITION_INDEPENDENT_CODE 1 )
9
9
add_dependencies (cavity generate-config-hpp)
10
10
# Sets install directory for all the headers in the list
11
11
foreach (_header ${headers_list} )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ list(APPEND headers_list AnisotropicLiquid.hpp DerivativeTypes.hpp DerivativeUti
8
8
list (APPEND sources_list )
9
9
10
10
add_library (green OBJECT ${sources_list} ${headers_list} )
11
- set_target_properties (green PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
11
+ set_target_properties (green PROPERTIES POSITION_INDEPENDENT_CODE 1 )
12
12
add_dependencies (green generate-config-hpp)
13
13
# Sets install directory for all the headers in the list
14
14
foreach (_header ${headers_list} )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ list(APPEND headers_list Meddle.hpp Input.hpp)
5
5
list (APPEND sources_list Meddle.cpp Input .cpp PhysicalConstants.cpp)
6
6
7
7
add_library (interface OBJECT ${sources_list} ${headers_list} )
8
- set_target_properties (interface PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
8
+ set_target_properties (interface PROPERTIES POSITION_INDEPENDENT_CODE 1 )
9
9
add_dependencies (interface generate-config-hpp)
10
10
# Sets install directory for all the headers in the list
11
11
foreach (_header ${headers_list} )
Original file line number Diff line number Diff line change @@ -93,22 +93,22 @@ def glob_sources_fortran(dir_name):
93
93
94
94
if (lang == 'CXX' ):
95
95
f .write ('add_library(' + libname + ' OBJECT ${sources_list} ${headers_list})\n ' )
96
- f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )\n ' )
96
+ f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 )\n ' )
97
97
f .write ('add_dependencies(' + libname + ' generate-config-hpp)\n ' )
98
98
f .write ('# Sets install directory for all the headers in the list\n ' )
99
99
f .write ('foreach(_header ${headers_list})\n ' )
100
100
f .write (' install(FILES ${_header} DESTINATION include/' + libname + ')\n ' )
101
101
f .write ('endforeach()\n ' )
102
102
elif (lang == 'C' ):
103
103
f .write ('add_library(' + libname + ' OBJECT ${sources_list} ${headers_list})\n ' )
104
- f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )\n ' )
104
+ f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 )\n ' )
105
105
f .write ('# Sets install directory for all the headers in the list\n ' )
106
106
f .write ('foreach(_header ${headers_list})\n ' )
107
107
f .write (' install(FILES ${_header} DESTINATION include/' + libname + ')\n ' )
108
108
f .write ('endforeach()\n ' )
109
109
else :
110
110
f .write ('add_library(' + libname + ' OBJECT ${sources_list})\n ' )
111
- f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )\n ' )
111
+ f .write ('set_target_properties(' + libname + ' PROPERTIES POSITION_INDEPENDENT_CODE 1 )\n ' )
112
112
113
113
print ('Template for {} created' .format (libname ))
114
114
print ('Don\' t forget to fix excluded files and dependencies!!!' )
Original file line number Diff line number Diff line change 2
2
list (APPEND sources_list metal_sphere.F90)
3
3
4
4
add_library (metal OBJECT ${sources_list} )
5
- set_target_properties (metal PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
5
+ set_target_properties (metal PROPERTIES POSITION_INDEPENDENT_CODE 1 )
Original file line number Diff line number Diff line change 2
2
list (APPEND sources_list pedra_cavity.F90 pedra_cavity_interface.F90 pedra_dblas.F90 pedra_dlapack.F90 pedra_precision.F90 pedra_print.F90 pedra_symmetry.F90 pedra_utils.F90)
3
3
4
4
add_library (pedra OBJECT ${sources_list} )
5
- set_target_properties (pedra PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
5
+ set_target_properties (pedra PROPERTIES POSITION_INDEPENDENT_CODE 1 )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ list(APPEND headers_list CPCMSolver.hpp IEFSolver.hpp PCMSolver.hpp RegisterSolv
5
5
list (APPEND sources_list CPCMSolver.cpp IEFSolver.cpp)
6
6
7
7
add_library (solver OBJECT ${sources_list} ${headers_list} )
8
- set_target_properties (solver PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
8
+ set_target_properties (solver PROPERTIES POSITION_INDEPENDENT_CODE 1 )
9
9
add_dependencies (solver generate-config-hpp)
10
10
# Sets install directory for all the headers in the list
11
11
foreach (_header ${headers_list} )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ list(APPEND sources_list Atom.cpp FortranCUtils.cpp Molecule.cpp Solvent.cpp Sph
9
9
set_source_files_properties (cnpy.cpp PROPERTIES COMPILE_FLAGS -w)
10
10
11
11
add_library (utils OBJECT ${sources_list} ${headers_list} )
12
- set_target_properties (utils PROPERTIES POSITION_INDEPENDENT_CODE 1 INTERPROCEDURAL_OPTIMIZATION 1 )
12
+ set_target_properties (utils PROPERTIES POSITION_INDEPENDENT_CODE 1 )
13
13
add_dependencies (utils generate-config-hpp)
14
14
# Sets install directory for all the headers in the list
15
15
foreach (_header ${headers_list} )
You can’t perform that action at this time.
0 commit comments