-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes issue #718 (and incidentally fixes #702 too). The modified `<gsl/util>` imports and various changes from `int` to `std::size_t` are a consequence of using a newer version of MS GSL. I changed the dependency version so we can use an upstream CMake package configuration file which is compatible with the one generated by Conan 2's `CMakeDeps` generator. This should enable us to use the same `find_package()` commands and target names regardless of whether the build is running under Conan or not. This also removes the ability to run Conan from within CMake, because upstream hasn't released a version of the cmake-conan helper script with full support for all Conan 2 features yet. (Notably, support for the `CMakeToolchain` generator is missing.)
- Loading branch information
1 parent
9dff0ad
commit b1333ef
Showing
13 changed files
with
133 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include ("@PACKAGE_targetsFile@") | ||
|
||
include(CMakeFindDependencyMacro) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${PACKAGE_PREFIX_DIR}/@LIBCOSIM_CMAKE_INSTALL_DIR@") | ||
|
||
find_dependency(MS_GSL REQUIRED) | ||
find_dependency(Boost REQUIRED COMPONENTS date_time log) | ||
set(FMILibrary_USE_SHARED_LIB @FMILibrary_USE_SHARED_LIB@) | ||
find_dependency(FMILibrary REQUIRED) | ||
find_dependency(LIBZIP REQUIRED) | ||
find_dependency(YAML_CPP REQUIRED) | ||
find_dependency(FMILibrary MODULE REQUIRED) | ||
find_dependency(libzip REQUIRED) | ||
find_dependency(Microsoft.GSL REQUIRED) | ||
find_dependency(yaml-cpp REQUIRED) | ||
find_dependency(XercesC REQUIRED) | ||
|
||
if(@LIBCOSIM_WITH_PROXYFMU@) | ||
find_dependency(PROXYFMU CONFIG REQUIRED) | ||
endif() | ||
|
||
list(REMOVE_AT CMAKE_MODULE_PATH -1) |
Oops, something went wrong.