Skip to content

Commit

Permalink
Updated CMakeLists.txt fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bialger committed Jan 18, 2024
1 parent 00df42e commit ac05e89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ project(

set(CMAKE_CXX_STANDARD 20)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) # Change this to Release when you're ready to release
endif()

if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS_DEBUG "/MDd /fsanitize=address")
set(CMAKE_CXX_FLAGS_RELEASE "/O2")
Expand All @@ -21,8 +17,6 @@ else ()
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
endif()

message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")

add_subdirectory(lib)
add_subdirectory(bin)

Expand Down
6 changes: 6 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
cmake_minimum_required(VERSION 3.12)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) # Change this to Release when you're ready to release
endif()

message(STATUS "Libraries build type: ${CMAKE_BUILD_TYPE}")

add_subdirectory(mylib)

0 comments on commit ac05e89

Please sign in to comment.