File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11@PACKAGE_INIT@
22
3+ # How this Matplot++ installation was built
34set (MATPLOT_BUILT_SHARED "@BUILD_SHARED_LIBS@" )
5+ set (MATPLOT_BUILT_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@" )
6+ set (MATPLOT_BUILT_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@" )
7+
8+ # Check if it matches the current toolchain
9+ if (NOT CMAKE_CXX_COMPILER_VERSION STREQUAL MATPLOT_BUILT_CXX_COMPILER_ID)
10+ message (WARNING "This installation of Matplot++ was built with ${MATPLOT_BUILT_CXX_COMPILER_ID} ." )
11+ endif ()
12+
13+ # Find dependencies
414if (NOT ${MATPLOT_BUILT_SHARED} )
515 include (CMakeFindDependencyMacro)
6-
716 list (APPEND CMAKE_MODULE_PATH ${MATPLOT_CONFIG_INSTALL_DIR} )
817 list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} " )
918 find_dependency(Filesystem COMPONENTS Experimental Final)
1019 list (POP_BACK CMAKE_MODULE_PATH )
1120endif ()
1221
22+ # Create imported targets
1323include ("${CMAKE_CURRENT_LIST_DIR} /Matplot++Targets.cmake" )
1424check_required_components(Matplot++)
You can’t perform that action at this time.
0 commit comments