This commit is contained in:
Your Name
2025-05-03 18:38:37 +12:00
parent 807e7904e5
commit aafcc4cafe
2 changed files with 8 additions and 1 deletions

View File

View File

@@ -1,9 +1,16 @@
cmake_minimum_required(VERSION 3.10)
project(simple_object_storage)
# Set the build type to Debug
#set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type (e.g., Debug, Release)" FORCE)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Linking flags (removed -static)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
set(BUILD_SHARED_LIBS OFF)
# Find all source files in src directory
file(GLOB_RECURSE SOURCES
"src/*.cpp"
@@ -25,7 +32,7 @@ include_directories(
# Create executable
add_executable(simple_object_storage ${SOURCES})
# Link libraries (CMake should find static versions now)
# Remove specific static flags as CMAKE_EXE_LINKER_FLAGS handles it now
target_link_libraries(simple_object_storage
)