We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43382dd commit f9b22bbCopy full SHA for f9b22bb
config/CMakeLists.txt
@@ -19,12 +19,12 @@ configure_package_config_file(
19
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
20
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
21
)
22
-if(BUILD_SHARED_LIBS)
+if(BUILD_SHARED_LIBS OR PROJECT_VERSION_MAJOR EQUAL 0)
23
# Due to the uncertain ABI compatibility of Fortran shared libraries
24
# limit compatibility for dynamic linking to same minor version.
25
set(COMPATIBILITY SameMinorVersion)
26
else()
27
- # Require API compatibility via semantic versioning for static linking,
+ # Require API compatibility via semantic versioning for static linking.
28
set(COMPATIBILITY SameMajorVersion)
29
endif()
30
write_basic_package_version_file(
0 commit comments