Skip to content

Commit 555ba46

Browse files
committed
remove r16p_support also from cmake
1 parent 83c3ba3 commit 555ba46

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/lib/CMakeLists.txt

+14-16
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ target_include_directories(${LIB}
2222

2323
# set variables used for compile definitions of targets after support check
2424
include(CheckFortranSourceRuns)
25-
check_fortran_source_runs(
26-
"program r16p_support;
27-
integer, parameter :: r16p = selected_real_kind(33, 4931);
28-
if(r16p < 0) stop 1;
29-
end program r16p_support"
30-
R16P_SUPPORTED
31-
SRC_EXT f90)
32-
if(R16P_SUPPORTED)
33-
set(r16p_supported "_R16P_SUPPORTED")
34-
endif()
3525

3626
check_fortran_source_runs(
3727
"program ascii_support;
@@ -70,7 +60,6 @@ endif()
7060

7161
target_compile_definitions(${LIB}
7262
PRIVATE
73-
${r16p_supported}
7463
${ascii_supported}
7564
${ascii_neq_default}
7665
${ucs4_supported}
@@ -86,12 +75,21 @@ set_target_properties(${LIB} PROPERTIES
8675
# installation and export of targets
8776
install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/
8877
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
89-
COMPONENT Developement
78+
COMPONENT ${PROJECT_NAME}_Developement
9079
)
9180

9281
install(TARGETS ${LIB} EXPORT ${TARGETS_EXPORT_NAME}
93-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
94-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
95-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
96-
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
82+
ARCHIVE
83+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
84+
COMPONENT ${PROJECT_NAME}_Development
85+
LIBRARY
86+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
87+
COMPONENT ${PROJECT_NAME}_Runtime
88+
NAMELINK_COMPONENT ${PROJECT_NAME}_Developement
89+
RUNTIME
90+
DESTINATION ${CMAKE_INSTALL_BINDIR}
91+
COMPONENT ${PROJECT_NAME}_Runtime
92+
INCLUDES
93+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
94+
COMPONENT ${PROJECT_NAME}_Development
9795
)

0 commit comments

Comments
 (0)