Skip to content

Commit

Permalink
fix for cmake ExternalProject_Add
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Sep 7, 2024
1 parent f3f7b84 commit d27041a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/cxx-standard-def.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down
10 changes: 10 additions & 0 deletions libs/cmdr11/include/cmdr11/cmdr_z_test.hh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,21 @@ namespace cmdr::test {
}

inline void test_for_macros() {
#if defined(CMDR_ENABLE_ASSERTIONS)
std::cout << "CMDR_ENABLE_ASSERTIONS : " << CMDR_ENABLE_ASSERTIONS << '\n';
#endif
#if defined(CMDR_ENABLE_PRECONDITION_CHECKS)
std::cout << "CMDR_ENABLE_PRECONDITION_CHECKS : " << CMDR_ENABLE_PRECONDITION_CHECKS << '\n';
#endif
#if defined(CMDR_ENABLE_THREAD_POOL_READY_SIGNAL)
std::cout << "CMDR_ENABLE_THREAD_POOL_READY_SIGNAL : " << CMDR_ENABLE_THREAD_POOL_READY_SIGNAL << '\n';
#endif
#if defined(CMDR_TEST_THREAD_POOL_DBGOUT)
std::cout << "CMDR_TEST_THREAD_POOL_DBGOUT : " << CMDR_TEST_THREAD_POOL_DBGOUT << '\n';
#endif
#if defined(CMDR_UNIT_TEST)
std::cout << "CMDR_UNIT_TEST : " << CMDR_UNIT_TEST << '\n';
#endif
#if defined(CMDR_ENABLE_VERBOSE_LOG)
std::cout << "CMDR_ENABLE_VERBOSE_LOG : " << CMDR_ENABLE_VERBOSE_LOG << '\n';
#endif
Expand Down

0 comments on commit d27041a

Please sign in to comment.