diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-12-04 17:44:30 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-12-04 17:44:30 +0100 |
commit | 62f8a7d05f9a72f632fbf2b70490b9bbd1c49895 (patch) | |
tree | 61dc2e3f97ba400ab1290a7cf2fd8144c35a7598 | |
parent | 492815c8fc38ad6e333b2f1c5094a329e3076155 (diff) | |
download | liberty-62f8a7d05f9a72f632fbf2b70490b9bbd1c49895.tar.gz liberty-62f8a7d05f9a72f632fbf2b70490b9bbd1c49895.tar.xz liberty-62f8a7d05f9a72f632fbf2b70490b9bbd1c49895.zip |
lxdrgen-cpp: fix test build on macOS
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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) |