diff --git a/Templates/CCMakeSystemConfig.cmake.in b/Templates/CCMakeSystemConfig.cmake.in index dd65d0e9c..41ec3dd1b 100644 --- a/Templates/CCMakeSystemConfig.cmake.in +++ b/Templates/CCMakeSystemConfig.cmake.in @@ -142,4 +142,5 @@ CMAKE_SKIP_RPATH CMAKE_X_CFLAGS CMAKE_ANSI_CFLAGS CMAKE_MAKE_PROGRAM +CMAKE_C_LINK_SHARED ) diff --git a/Templates/CXXCMakeSystemConfig.cmake.in b/Templates/CXXCMakeSystemConfig.cmake.in index b9e16bd5e..902953400 100644 --- a/Templates/CXXCMakeSystemConfig.cmake.in +++ b/Templates/CXXCMakeSystemConfig.cmake.in @@ -105,4 +105,12 @@ CMAKE_NO_STD_NAMESPACE CMAKE_COMPILER_IS_GNUCXX CMAKE_ANSI_CXXFLAGS CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION +CMAKE_CXX_LINK_SHARED +CMAKE_CXX_MODULE_BUILD_FLAGS +CMAKE_CXX_MODULE_LINK_FLAGS +CMAKE_CXX_SHLIB_BUILD_FLAGS +CMAKE_CXX_SHLIB_CFLAGS +CMAKE_CXX_SHLIB_LINK_FLAGS +CMAKE_CXX_SHLIB_RUNTIME_FLAG +CMAKE_CXX_SHLIB_RUNTIME_SEP )