mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
build: test_package swithced to use new Conan toolchains
This commit is contained in:
@ -27,4 +27,3 @@ find_package(mp-units CONFIG REQUIRED)
|
||||
|
||||
add_executable(test_package test_package.cpp)
|
||||
target_link_libraries(test_package PRIVATE mp::units)
|
||||
target_compile_features(test_package PRIVATE cxx_std_20)
|
||||
|
@ -20,12 +20,17 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from conans import ConanFile, CMake, tools, RunEnvironment
|
||||
from conans import ConanFile, tools, RunEnvironment
|
||||
from conan.tools.cmake import CMakeToolchain, CMake
|
||||
|
||||
class TestPackageConan(ConanFile):
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
generators = "cmake_find_package_multi"
|
||||
|
||||
def generate(self):
|
||||
tc = CMakeToolchain(self)
|
||||
tc.generate()
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
cmake.configure()
|
||||
|
Reference in New Issue
Block a user