diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2014-07-11 14:36:01 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2014-07-11 14:36:01 +0400 |
commit | 5041880854a38db862b7af1902e357ac10f25637 (patch) | |
tree | d61411c7a73b93b82de78faa875ad5cbdb468ee9 /src/CMakeLists.txt | |
parent | 2c904afd04350401a72821813b723dd829286b86 (diff) |
Try to handle BUILD_LIBRARIES_ONLY correctly
Also, try to fix OS X build
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 118f47809..d8ed9b81c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,8 +4,10 @@ set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") set(synclib_NAME ${APPLICATION_EXECUTABLE}sync) add_subdirectory(libsync) -add_subdirectory(gui) -add_subdirectory(cmd) +if (NOT BUILD_LIBRARIES_ONLY) + add_subdirectory(gui) + add_subdirectory(cmd) +endif(NOT BUILD_LIBRARIES_ONLY) find_program(KRAZY2_EXECUTABLE krazy2) if(KRAZY2_EXECUTABLE) |