Commit 17e759a8 authored by Antenore Gatta's avatar Antenore Gatta

String wrapping not allowed in old CMAKE versions

parent 7310837c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment