Skip to content

Commit

Permalink
updated build to look search ~/local first
Browse files Browse the repository at this point in the history
  • Loading branch information
rgemulla committed May 31, 2017
1 parent bd360e6 commit c9f298b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Expand Up @@ -48,9 +48,9 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX)
# definitions for visual studio
add_definitions(-D_CRT_SECURE_NO_WARNINGS)

# my own includes/libs
#include_directories(~/local/include)############
#link_directories(~/local/lib)####################3
# first look in local include/library folder (e.g., for mpi2 library or Boost)
include_directories(~/local/include)
link_directories(~/local/lib)
SET(RG_LIBRARIES rg)
SET(MPI2_LIBRARIES mpi2)

Expand All @@ -66,7 +66,7 @@ find_package(Boost 1.63 COMPONENTS serialization mpi thread program_options rege
IF(NOT ${Boost_FOUND})
SET(BOOST_ROOT ~/local) # default
SET(Boost_NO_SYSTEM_PATHS ON) # force to use own build
find_package(Boost 1.63 COMPONENTS serialization mpi thread program_options regex filesystem chrono REQUIRED)
find_package(Boost 1.63 COMPONENTS serialization mpi thread program_options regex filesystem chrono REQUIRED)
ENDIF(NOT ${Boost_FOUND})
link_directories(${Boost_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
Expand Down

0 comments on commit c9f298b

Please sign in to comment.