From 9bf177627f058e636ce4d87cf38db71c3e267ad5 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sat, 13 Feb 2021 20:07:27 -0800 Subject: [PATCH] try again --- .github/workflows/cmake.yml | 3 +++ CMakeLists.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a576427..cf377df 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -46,6 +46,9 @@ jobs: # We'll use this as our working directory for all subsequent commands run: cmake -E make_directory ${{github.workspace}}/build + - name: print libc++ version + run: COMMAND echo "#include \nint main () {}" | clang-9 -E --std=c++2a -stdlib=libc++ -x c++ -dM - | grep _LIBCPP_VERSION + - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable # access regardless of the host operating system diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e7d051..47c9eb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") set(PROJECT_WARNINGS ${CLANG_WARNINGS}) - execute_process(COMMAND printf "#include \nint main () {}" | clang-9 -E --std=c++2a -stdlib=libc++ -x c++ -dM - | grep _LIBCPP_VERSION) target_compile_options(test_rgbcx PUBLIC ${PROJECT_WARNINGS}) endif() set(CMAKE_CXX_FLAGS_DEBUG "-g")