reflect: build: use xo_toplevel_compile_options() to simplify

This commit is contained in:
Roland Conybeare 2023-09-27 16:08:43 -04:00
commit 7a58d58470
2 changed files with 32 additions and 91 deletions

View file

@ -45,10 +45,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# always write compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
xo_toplevel_compile_options()
if(NOT CMAKE_INSTALL_RPATH)
set(CMAKE_INSTALL_RPATH $(CMAKE_INSTALL_PREFIX)/lib CACHE STRING "runpath in installed libraries/executables")
endif()
# early find_package() experiment
find_package(indentlog CONFIG REQUIRED)
find_package(refcnt CONFIG REQUIRED)