Skip to content

Commit

Permalink
Update BUILDING-cmake.md (#800)
Browse files Browse the repository at this point in the history
set standard first
  • Loading branch information
CalebCurry committed Mar 2, 2024
1 parent 2ffb711 commit 9d2a459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BUILDING-cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ So a simple working `CMakeLists.txt` might be:
```cmake
cmake_minimum_required(VERSION 3.18)
project(ausom)
add_executable(ausom src/ausom.cxx)
set(CMAKE_CXX_STANDARD 20)
add_executable(ausom src/ausom.cxx)
add_subdirectory(deps/libpqxx build-pqxx)
target_link_libraries(ausom PRIVATE pqxx)
Expand Down Expand Up @@ -95,8 +95,8 @@ So a simple working `CMakeLists.txt` might be:
```cmake
cmake_minimum_required(VERSION 3.18)
project(ausom)
add_executable(ausom src/ausom.cxx)
set(CMAKE_CXX_STANDARD 20)
add_executable(ausom src/ausom.cxx)
find_package(libpqxx REQUIRED)
target_link_libraries(ausom PRIVATE pqxx)
Expand Down

0 comments on commit 9d2a459

Please sign in to comment.