History

Document boost and bison dependencies, clean up detection

Wolfgang Thaller committed 11 years ago

Commit 41e327d1 parent 2268b5f3 files · +13 −8Browse files

Unified · Split

3 files
  1. README.md +5 −4
  2. ResourceFiles/CMakeLists.txt +1 −1
  3. Rez/CMakeLists.txt +7 −3
README.md+5−4
@@ -13,21 +13,22 @@ Prerequisites · 12 unmodified lines
1313 -------------
1414
1515 - Linux or Mac OS X
16−- boost, if using gcc 4.8 or earlier to compile on Linux
16+- boost
1717 - CMake 2.8
1818 - GCC dependencies: GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
19+- bison version 3.0.2 or later
1920 - Apple Universal Interfaces (tested with version 3.1 - see below)
2021 - An ancient Mac and/or an emulator.
2122
2223 For Ubuntu Linux, the following should help a bit:
2324
24− sudo apt-get install cmake libgmp-dev libmpfr-dev libmpc-dev
25+ sudo apt-get install cmake libgmp-dev libmpfr-dev libmpc-dev libboost-all-dev bison
2526
2627 On a Mac, get the homebrew package manager and:
2728
28− brew install cmake gmp mpfr libmpc
29+ brew install cmake gmp mpfr libmpc boost bison
2930
30−You can also run Retro68 on a PowerMac G4 or G5 running Mac OS 10.4 (Tiger).
31+In theory, you can also run Retro68 on a PowerMac G4 or G5 running Mac OS 10.4 (Tiger).
3132 In that case, get the tigerbrew package manager and
3233
3334 brew install gcc cmake
ResourceFiles/CMakeLists.txt+1−1
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 cmake_minimum_required(VERSION 2.8)
1919 set(CMAKE_CXX_FLAGS "--std=c++0x -Wall -Werror=return-type")
2020
21−find_package(Boost COMPONENTS filesystem system)
21+find_package(Boost COMPONENTS filesystem system REQUIRED)
2222
2323 add_library(ResourceFiles
2424 ResourceFork.h ResourceFork.cc
Rez/CMakeLists.txt+7−3
@@ -21,9 +21,11 @@ set(CMAKE_CXX_FLAGS "--std=c++11 -Wall") · 20 unmodified lines
2121
2222 find_package(Boost COMPONENTS wave filesystem system thread regex program_options)
2323
24−if(Boost_FOUND)
24+set(CMAKE_PROGRAM_PATH $CMAKE_PROGRAM_PATH "/usr/local/opt/bison/bin")
25+find_package(BISON 3.0.2)
26+
27+if(Boost_FOUND AND BISON_FOUND)
2528
26−find_package(BISON REQUIRED)
2729
2830 include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
2931
@@ -68,4 +70,6 @@ install(TARGETS Rez RUNTIME DESTINATION bin) · 38 unmodified lines
6870
6971 add_subdirectory(Test)
7072
71−endif(Boost_FOUND)
73+else(Boost_FOUND AND BISON_FOUND)
74+ message(WARNING "Rez compiler will not be built; both boost and Bison 3.0.2 are required")
75+endif(Boost_FOUND AND BISON_FOUND)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t