Skip to content

Commit

Permalink
Merge pull request geoneric#89 from pcraster/gh88
Browse files Browse the repository at this point in the history
Disabled dependency on Boost timer
  • Loading branch information
kordejong authored Nov 14, 2023
2 parents cc21871 + cfc4e0b commit c8d3152
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions environment/cmake/FernConfiguration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ endif()
if(FERN_BUILD_ALGORITHM)
# Required third party software.
set(DEVBASE_BOOST_REQUIRED TRUE)
list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)
# list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)

# Required Fern targets.
set(FERN_FERN_ALGORITHM_REQUIRED TRUE)
Expand Down Expand Up @@ -112,7 +112,7 @@ endif()
if(FERN_BUILD_IO)
# Required third party software.
set(DEVBASE_BOOST_REQUIRED TRUE)
list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)
# list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)
if(FERN_IO_WITH_GDAL)
set(DEVBASE_GDAL_REQUIRED TRUE)
endif()
Expand Down Expand Up @@ -140,7 +140,7 @@ endif()
if(FERN_BUILD_LANGUAGE)
# Required third party software.
set(DEVBASE_BOOST_REQUIRED TRUE)
list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)
# list(APPEND DEVBASE_REQUIRED_BOOST_COMPONENTS timer)
set(DEVBASE_EXPAT_REQUIRED TRUE)
set(DEVBASE_LOKI_REQUIRED TRUE)
set(DEVBASE_PYTHON_LIBS_REQUIRED TRUE)
Expand Down
7 changes: 4 additions & 3 deletions fern-config.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
include(CMakeFindDependencyMacro)
find_dependency(Boost
COMPONENTS
filesystem
system
timer
# filesystem
# system
# timer
headers
)
find_dependency(Threads)
include("${CMAKE_CURRENT_LIST_DIR}/fern_targets.cmake")
6 changes: 3 additions & 3 deletions source/fern/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_library(fern_core
path.cc
script_error.cc
stack.cc
stopwatch.cc
# stopwatch.cc
string.cc
thread_pool.cc
type_traits.cc
Expand All @@ -30,8 +30,8 @@ target_include_directories(fern_core
)

target_link_libraries(fern_core
PUBLIC
Boost::timer
# PUBLIC
# Boost::timer
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:Threads::Threads>
)
Expand Down
2 changes: 1 addition & 1 deletion source/fern/core/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_unit_tests(
scope_test.cc
stack_test.cc
std_test.cc
stopwatch_test.cc
# stopwatch_test.cc
string_test.cc
type_traits_test.cc
typelist_test.cc
Expand Down

0 comments on commit c8d3152

Please sign in to comment.