Changes in Cmake scripts for CrysFML08 ...

parent 76cf6427
Pipeline #7269 passed with stages
in 8 minutes and 1 second
......@@ -132,8 +132,9 @@ set(TABLES_1_SRC CFML_Scattering_Tables.f90
set(TABLES_2_SRC CFML_Symmetry_Tables.f90
CFML_BVS_Tables.f90
CFML_Magnetic_Database.f90
CFML_SuperSpace_Database.f90
${SUBMOD_TABLES_2_SRC})
CFML_SuperSpace_Database.f90)
set(TABLES_3_SRC ${SUBMOD_TABLES_2_SRC})
if(${COMPILER_NAME} STREQUAL ifort)
set_source_files_properties(${TABLES_1_SRC}
PROPERTIES COMPILE_FLAGS ${OPT_FLAGS} ${OPT_FLAGS1} ${OPT_FLAGS2})
......@@ -144,9 +145,15 @@ endif()
if(${COMPILER_NAME} STREQUAL ifort)
set_source_files_properties(${TABLES_2_SRC}
PROPERTIES COMPILE_FLAGS ${OPT_FLAGS} ${OPT_FLAGS0} ${OPT_FLAGS2})
set_source_files_properties(${TABLES_3_SRC}
PROPERTIES COMPILE_FLAGS "${OPT_FLAGS} ${OPT_FLAGS0}")
else()
set_source_files_properties(${TABLES_2_SRC}
PROPERTIES COMPILE_FLAGS ${OPT_FLAGSC} ${OPT_FLAGS0})
set_source_files_properties(${TABLES_3_SRC}
PROPERTIES COMPILE_FLAGS ${OPT_FLAGSC} ${OPT_FLAGS0})
endif()
# CFML_gSpaceGroups
......@@ -272,6 +279,7 @@ set(CRYSFML_COMMON_SRC
${METRICS_SRC}
${TABLES_1_SRC}
${TABLES_2_SRC}
${TABLES_3_SRC}
${GROUPS_SRC}
${PROFILE_1_SRC}
${PROFILE_2_SRC}
......
......@@ -10,7 +10,7 @@ macro(set_compiler_flags_08)
if(COMPILER_NAME STREQUAL ifort)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(OPT_FLAGS "/nologo")
set(OPT_FLAGS0 "/debug:full /check /check:noarg_temp_created /traceback /nologo /CB")
set(OPT_FLAGS0 "/Od")
set(OPT_FLAGS1 "/debug:full /check /check:noarg_temp_created /traceback /nologo /CB")
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(OPT_FLAGS "/nologo")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment