Skip to content

Commit

Permalink
cleanup CMakeLists.txt, time for basic CI testing
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold committed Jan 2, 2021
1 parent 699c2d6 commit a4937cb
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
cmake_minimum_required(VERSION 3.4...3.18)

set(CMAKE_VERBOSE_MAKEFILE ON)

project(re2 LANGUAGES CXX C)
include(GNUInstallDirs)

message("re2 CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}")

find_package(re2 CONFIG REQUIRED NAMES re2)

get_target_property(include_dirs re2::re2 INTERFACE_INCLUDE_DIRECTORIES)
message("re2_include_dirs=${include_dirs}")

get_target_property(link_libraries re2::re2 INTERFACE_LINK_LIBRARIES)
message("re2_extra_objects=${link_libraries}")


message(STATUS "<<< re2 Build configuration >>>
Build type ${CMAKE_BUILD_TYPE}
Install path ${CMAKE_INSTALL_PREFIX}
Compiler flags:
C ${CMAKE_C_FLAGS}
C++ ${CMAKE_CXX_FLAGS}
Linker flags:
Executable ${CMAKE_EXE_LINKER_FLAGS}
Module ${CMAKE_MODULE_LINKER_FLAGS}
Shared ${CMAKE_SHARED_LINKER_FLAGS}
ToolchainFile:
${CMAKE_TOOLCHAIN_FILE}\n")

0 comments on commit a4937cb

Please sign in to comment.