]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do not trigger recompilation if it is not necessary
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Nov 2012 09:08:13 +0000 (09:08 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Nov 2012 09:08:13 +0000 (09:08 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27485 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/bundled/tbb30_104oss/src/CMakeLists.txt

index 3867c9c0a713e1fe72653a5229620a54b1eecada..066a3fa679b4b6aba57f3016d24d99575d0dbdd2 100644 (file)
@@ -16,9 +16,11 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_CURRENT_SOURCE_DIR}/rml/include
   )
 
-FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/version_string.tmp"
-  "#define __TBB_VERSION_STRINGS \"Empty\""
-  )
+IF(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/version_string.tmp")
+  FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/version_string.tmp"
+    "#define __TBB_VERSION_STRINGS \"Empty\""
+    )
+ENDIF()
 
 SET(src_tbb
   rml/client/omp_dynamic_link.cpp

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.