Skip to content

Cannot Build CMake Project That Uses Both AWS SDK CPP & AWS Lambda CPP #3068

Discussion options

You must be logged in to vote

For anyone who comes across this and had the same issue as me, I was able to fix it by changing the variable TARGET_NAME in my previous CMakeLists.txt to just TARGET. Basically, set(TARGET_NAME "PathTracer") -> set(TARGET "PathTracer"). I'm not really well-versed with CMake to explain why this fixed it but here is the updated CMakeLists.txt for reference

# CMakeList.txt : CMake project for path-tracer, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
file(CREATE_LINK
  "${CMAKE_BINARY_DIR}/compile_commands.json"
  "${CMAKE_SOURCE_DIR}/compile_commands.json"
  SYMBOLIC
)

set(CMAKE_CXX_STANDARD 20)

# Ena…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SeveralCube22
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant