Skip to content

Commit

Permalink
Compile with RelWithDebInfo by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sopel97 committed Nov 8, 2020
1 parent 5de27aa commit 95203ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.0)

project(data_loader)

if(NOT DEFINED CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED 17)

Expand Down
4 changes: 2 additions & 2 deletions compile_data_loader.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cmake . -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="./"
cmake --build ./build --config Release --target install
cmake . -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="./"
cmake --build ./build --config RelWithDebInfo --target install

0 comments on commit 95203ce

Please sign in to comment.