Skip to content

Commit

Permalink
Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunharker committed Jun 3, 2016
1 parent 7492f5c commit dfa0829
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG" )

find_package(Boost 1.58.0 REQUIRED COMPONENTS chrono system thread serialization)
find_package(Threads)

# The next line fixes an issue with Anaconda interfering with X11
# on Mac OS X. It causes the system to check the usual install path first.
# Otherwise, it tries to use the X11 in Anaconda which is not suitable.
set(CMAKE_INCLUDE_PATH "/opt/X11/include;${CMAKE_INCLUDE_PATH}")
find_package(X11 REQUIRED)

#######################
Expand All @@ -41,7 +46,8 @@ include_directories (
/opt/local/include
${Boost_INCLUDE_DIRS}
${USER_INCLUDE_PATH}
${X11_X11_INCLUDE_PATH} )
${X11_INCLUDE_DIR}
)

#######################
# Library Directories #
Expand Down

0 comments on commit dfa0829

Please sign in to comment.