fix(glog)

glog 0.7.0 can no long be used without a build system.

frankly, i find that stupid, but it's C++, and i don't accept C++'s foibles anymore anyway.

closes #5243
This commit is contained in:
Jacob Heider 2024-02-23 00:30:42 -05:00 committed by Jacob Heider
parent 1b0e36efc1
commit 856e8cd2df

View file

@ -20,8 +20,16 @@ build:
ARGS: ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}} - -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DBUILD_SHARED_LIBS=ON - -DBUILD_SHARED_LIBS=ON
- -DCMAKE_CXX_FLAGS=-std=c++14
test: test:
dependencies:
cmake.org: '*'
linux:
gnu.org/make: '*'
llvm.org: '*'
script:
- run: cat $FIXTURE >main.cpp
fixture: | fixture: |
#include <glog/logging.h> #include <glog/logging.h>
#include <iostream> #include <iostream>
@ -31,7 +39,13 @@ test:
google::InitGoogleLogging(argv[0]); google::InitGoogleLogging(argv[0]);
LOG(INFO) << "test"; LOG(INFO) << "test";
} }
script: | - run: cat $FIXTURE >CMakeLists.txt
mv $FIXTURE test.cpp fixture: |
g++ test.cpp -lglog -lgflags -o test cmake_minimum_required (VERSION 3.16)
./test project (myproj VERSION 1.0)
find_package (glog 0.6.0 REQUIRED)
add_executable (myapp main.cpp)
target_link_libraries (myapp glog::glog)
- cmake -S . -B build
- cmake --build build
- ./build/myapp