Permalink
Browse files

Fix issue that the Debug mode doesn't work

  • Loading branch information...
yuandong-tian committed Feb 8, 2019
1 parent 47bbdf6 commit 19cd53400e36ce6eac85b27a1bd9ff2138f3a31d
Showing with 6 additions and 2 deletions.
  1. +1 −1 CMakeLists.txt
  2. +4 −0 third_party/CMakeLists.txt
  3. +1 −1 third_party/googletest
@@ -46,7 +46,7 @@ set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wno-register -Wno-deprecated-declarations -fPIC -march=native")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE Release)
endif()

# Define a convenience function for tests
@@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.3)
# These projects all have CMakeLists by default, thank you devs!

add_subdirectory(googletest)

set_target_properties(gtest
PROPERTIES
DEBUG_POSTFIX "")
add_subdirectory(json)
add_subdirectory(pybind11)
add_subdirectory(spdlog)
Submodule googletest updated 263 files

0 comments on commit 19cd534

Please sign in to comment.