From de693e2095f37d2a31a934e4ea041f85aa461c9a Mon Sep 17 00:00:00 2001 From: Joseph Lee Nunn III Date: Tue, 31 May 2016 14:47:10 -0700 Subject: [PATCH] Fixed no rule for target bug, Cleaned up INSTALL.md compile instr. Project would not build with error: [ 64%] Built target libYap Scanning dependencies of target yap-bin make[2]: *** No rule to make target `CMakeFiles/yap-bin.dir/build'. Stop. make[1]: *** [CMakeFiles/yap-bin.dir/all] Error 2 make: *** [all] Error 2 Cleaned up compilation instructions in INSTALL.md & added special advice for OSX. --- CMakeLists.txt | 11 +++-------- INSTALL.md | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc23fa44c..1071c20a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -711,16 +711,11 @@ if(WIN32) endif(WIN32) +add_executable (yap-bin ${CONSOLE_SOURCES}) if (NOT ANDROID) -add_executable (yap-bin ${CONSOLE_SOURCES} yap) - -set_target_properties (yap-bin PROPERTIES OUTPUT_NAME yap) + set_target_properties (yap-bin PROPERTIES OUTPUT_NAME yap) else() -add_executable (yap-bin ${CONSOLE_SOURCES} yap) - -set_target_properties (yap-bin PROPERTIES OUTPUT_NAME yapi) - - + set_target_properties (yap-bin PROPERTIES OUTPUT_NAME yapi) endif() target_link_libraries(yap-bin libYap ) diff --git a/INSTALL.md b/INSTALL.md index b46f7e255..e9d0b7f59 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -11,20 +11,21 @@ Compiling YAP {#CompilingYAP} To compile YAP it should be sufficient to: -2 create a directory, say `Build` and `cd` to the directory (`cd Build`). +0: Install a version of `cmake` 3.0 or above, if you don't have it, and add it to your path, you can find it here: https://cmake.org/ + * OSX: Create a symbolic link to the command line executables in + /usr/local/bin (which should be on your path) with `sudo ln -s /Applications/CMake.app/Contents/bin/* /usr/local/bin/` - obs: avoid compiling YAP in the src directory, some packages do not allow for that. +1: Create a directory, say `Build` and `cd` to the directory (`cd Build`). + * Avoid compiling YAP in the src directory, some packages do not allow for that. -1 run `cmake`, ideally using a cmake above 3.0. +2: Run `cmake ../` from within `Build` (or equivalent) -2 `make`. +3: Run `make` from within `Build` (or equivalent) -3 If the compilation succeeds, try `./yap`. +4: If the compilation succeeds, try `./yap`. This is your executable. -4 If you feel satisfied with the result, do `make install`. - -5 In most systems you will need to be superuser in order to do - `make install` and `make info` on the standard directories. +5: If you feel satisfied with the result, do `make install`. + * In most systems you will need to be superuser in order to do `make install` and `make info` on the standard directories. Tuning the Functionality of YAP -------------------------------