Skip to content

Commit

Permalink
Merge pull request ComputationalRadiationPhysics#903 from psychocoder…
Browse files Browse the repository at this point in the history
…HPC/fix-cmakeWithMallocMC

fix that always `thirdParty/malloc` is used
  • Loading branch information
BenjaminW3 committed Jun 3, 2015
2 parents f0ba515 + 1efb551 commit fea3499
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/picongpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2013-2014 Axel Huebl, Benjamin Schneider, Felix Schmitt, Heiko Burau, Rene Widera
# Copyright 2013-2015 Axel Huebl, Benjamin Schneider, Felix Schmitt, Heiko Burau, Rene Widera
#
# This file is part of PIConGPU.
#
Expand Down Expand Up @@ -85,20 +85,6 @@ if(CUDA_KEEP_FILES)
endif(CUDA_KEEP_FILES)


################################################################################
# Find mallocMC
################################################################################

find_package(mallocMC 2.1.0)

if(mallocMC_FOUND)
include_directories(SYSTEM ${mallocMC_INCLUDE_DIRS})
else(mallocMC_FOUND)
message(STATUS "Using mallocMC from thirdParty/ directory")
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdParty/mallocMC/src/include)
endif(mallocMC_FOUND)


################################################################################
# VampirTrace
################################################################################
Expand Down Expand Up @@ -269,6 +255,20 @@ if( (Boost_VERSION EQUAL 105500) AND
endif()


################################################################################
# Find mallocMC
################################################################################

find_package(mallocMC 2.1.0)

if(mallocMC_FOUND)
include_directories(SYSTEM ${mallocMC_INCLUDE_DIRS})
else(mallocMC_FOUND)
message(STATUS "Using mallocMC from thirdParty/ directory")
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../thirdParty/mallocMC/src/include)
endif(mallocMC_FOUND)


################################################################################
# PMacc options
################################################################################
Expand Down

0 comments on commit fea3499

Please sign in to comment.