diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2018-05-29 18:35:45 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2018-05-29 18:35:45 +0300 |
commit | 17e759a8713cdb8266fe9ad42d8a087e1e99bd8a (patch) | |
tree | afddb417e56ebfe67a81ab8ca44c548ad5171d78 | |
parent | 7310837cc5afe3bb57c6dcf59799862b192f4815 (diff) |
String wrapping not allowed in old CMAKE versions
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b2f48b70..79d18cc05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,8 +91,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") include_directories(/usr/local/include /usr/include) link_directories(/usr/local/lib /usr/lib) set(CMAKE_REQUIRED_INCLUDES /usr/local/include) - set(CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX} - /usr/local/lib) + set(CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX} /usr/local/lib) endif() # Versioning @@ -169,8 +168,7 @@ endif() option(SNAP_BUILD_ONLY "SNAP_BUILD_ONLY" OFF) if(SNAP_BUILD_ONLY) if(NOT SNAPCRAFT) - message(FATAL_ERROR - "snapcraft not found, impossible to create only snap target") + message(FATAL_ERROR "snapcraft not found, impossible to create only snap target") endif() return() endif() @@ -205,10 +203,8 @@ endif() if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang" AND WITH_CLANG_COVERAGE) message(STATUS "Enabling coverage.") add_definitions(-DWITH_CLANG_COVERAGE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} - -g -fprofile-instr-generate -fcoverage-mapping") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} - -fprofile-instr-generate") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fprofile-instr-generate -fcoverage-mapping") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-instr-generate") elseif("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" AND WITH_GCC_PROFILING) message(STATUS "Enabling profiling.") add_definitions(-DWITH_GCC_PROFILING) |