From 62f8a7d05f9a72f632fbf2b70490b9bbd1c49895 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 4 Dec 2024 17:44:30 +0100 Subject: lxdrgen-cpp: fix test build on macOS --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 68c4a50..9e04875 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required (VERSION 3.0...3.27) project (liberty C CXX) # Moar warnings +set (CMAKE_CXX_STANDARD 11) if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC) # -Wunused-function is pretty annoying here, as everything is static set (wdisabled "-Wno-unused-function") @@ -104,6 +105,7 @@ else () add_executable (test-lxdrgen-cpp tests/lxdrgen.cpp ${lxdrgen_base}.cpp tools/lxdrgen-cpp-posix.cpp) endif () +target_link_libraries (test-lxdrgen-cpp ${common_libraries}) target_include_directories (test-lxdrgen-cpp PUBLIC ${PROJECT_BINARY_DIR}) add_test (NAME test-lxdrgen-cpp COMMAND test-lxdrgen-cpp) -- cgit v1.2.3-70-g09d2