Skip to content

Commit

Permalink
Exclude some more and build by default under debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiburtse committed Sep 6, 2023
1 parent 29cd405 commit aac0ee0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/realm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ if (REALM_ENABLE_SYNC)
add_subdirectory(sync)
endif()
if(NOT REALM_BUILD_LIB_ONLY AND NOT WINDOWS_STORE)
add_subdirectory(exec)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_subdirectory(exec)
else()
add_subdirectory(exec EXCLUDE_FROM_ALL)
endif()
set_macos_only(exec)
endif()
6 changes: 6 additions & 0 deletions src/realm/exec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ set_target_properties(RealmTrawler PROPERTIES
DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}
)
target_link_libraries(RealmTrawler Storage)
if (EMSCRIPTEN)
set_target_properties(RealmTrawler PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif()

add_executable(RealmEnumerate realm_enumerate.cpp)
set_target_properties(RealmEnumerate PROPERTIES
Expand All @@ -38,6 +41,9 @@ set_target_properties(RealmDecrypt PROPERTIES
DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}
)
target_link_libraries(RealmDecrypt Storage)
if (NOT REALM_ENABLE_ENCRYPTION)
set_target_properties(RealmDecrypt PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif()

add_executable(RealmEncrypt realm_encrypt.cpp)
set_target_properties(RealmEncrypt PROPERTIES
Expand Down

0 comments on commit aac0ee0

Please sign in to comment.