← Back to team overview

dolfin team mailing list archive

Fwd: [Branch ~dolfin-core/dolfin/trunk] Rev 6983: Boost timer is only used on Windows.

 

I like to use Boost Timer is application code. Is there a problem
leaving it as it was?

Garth


---------- Forwarded message ----------
From:  <noreply@xxxxxxxxxxxxx>
Date: Tue, Oct 9, 2012 at 2:44 PM
Subject: [Branch ~dolfin-core/dolfin/trunk] Rev 6983: Boost timer is
only used on Windows.
To: Garth Wells <gnw20@xxxxxxxxx>


------------------------------------------------------------
revno: 6983
committer: Johannes Ring <johannr@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2012-10-09 15:43:25 +0200
message:
  Boost timer is only used on Windows.
modified:
  CMakeLists.txt


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/trunk

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to
https://code.launchpad.net/~dolfin-core/dolfin/trunk/+edit-subscription

=== modified file 'CMakeLists.txt'
--- CMakeLists.txt      2012-10-02 12:01:13 +0000
+++ CMakeLists.txt      2012-10-09 13:43:25 +0000
@@ -217,9 +217,11 @@
   find_package(Boost 1.36 COMPONENTS filesystem program_options
system thread iostreams math_tr1 REQUIRED)
 endif()

-# Boost timer was not a separate Boost component until version 1.48
-if ("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_GREATER "1.47")
-  find_package(Boost 1.36 COMPONENTS timer REQUIRED)
+if (WIN32)
+  # Boost timer was not a separate Boost component until version 1.48
+  if ("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_GREATER "1.47")
+    find_package(Boost COMPONENTS timer REQUIRED)
+  endif()
 endif()

 # Check for required packages




-- 
Garth N. Wells
Department of Engineering, University of Cambridge
http://www.eng.cam.ac.uk/~gnw20
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2012-10-02 12:01:13 +0000
+++ CMakeLists.txt	2012-10-09 13:43:25 +0000
@@ -217,9 +217,11 @@
   find_package(Boost 1.36 COMPONENTS filesystem program_options system thread iostreams math_tr1 REQUIRED)
 endif()
 
-# Boost timer was not a separate Boost component until version 1.48
-if ("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_GREATER "1.47")
-  find_package(Boost 1.36 COMPONENTS timer REQUIRED)
+if (WIN32)
+  # Boost timer was not a separate Boost component until version 1.48
+  if ("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_GREATER "1.47")
+    find_package(Boost COMPONENTS timer REQUIRED)
+  endif()
 endif()
 
 # Check for required packages


Follow ups