Skip to content
Snippets Groups Projects
Commit daf093eb authored by t.knopff's avatar t.knopff
Browse files

Fix formatting

parent 1c7f4f52
No related branches found
No related tags found
1 merge request!140Addendum to !109
Pipeline #40160 passed
......@@ -21,27 +21,27 @@ endif()
find_package(Cerf REQUIRED)
if(NOT Cerf_IS_CPP)
message(STATUS "Compiling test program to determine additional libcerf flags")
try_compile(COMPILE_OK
"${CMAKE_BINARY_DIR}/temp"
"${CMAKE_SOURCE_DIR}/cmake/tests/test_libcerf.cpp"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${Cerf_INCLUDE_DIR};${CMAKE_SOURCE_DIR}"
LINK_LIBRARIES "${Cerf_LIBRARIES}"
OUTPUT_VARIABLE COMPILE_OUT)
if(NOT COMPILE_OK)
message(STATUS "Compiling test program to determine additional libcerf flags")
try_compile(COMPILE_OK
"${CMAKE_BINARY_DIR}/temp"
"${CMAKE_SOURCE_DIR}/cmake/tests/test_libcerf.cpp"
COMPILE_DEFINITIONS "-DLIBCERF_WITHOUT_TYPEDEF"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${Cerf_INCLUDE_DIR};${CMAKE_SOURCE_DIR}"
LINK_LIBRARIES "${Cerf_LIBRARIES}")
if(COMPILE_OK)
add_definitions("-DLIBCERF_WITHOUT_TYPEDEF")
else()
message(FATAL_ERROR "Compilation of libcerf test program failed with "
"the following output:\n" "${COMPILE_OUT}\n")
"${CMAKE_BINARY_DIR}/temp"
"${CMAKE_SOURCE_DIR}/cmake/tests/test_libcerf.cpp"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${Cerf_INCLUDE_DIR};${CMAKE_SOURCE_DIR}"
LINK_LIBRARIES "${Cerf_LIBRARIES}"
OUTPUT_VARIABLE COMPILE_OUT)
if(NOT COMPILE_OK)
try_compile(COMPILE_OK
"${CMAKE_BINARY_DIR}/temp"
"${CMAKE_SOURCE_DIR}/cmake/tests/test_libcerf.cpp"
COMPILE_DEFINITIONS "-DLIBCERF_WITHOUT_TYPEDEF"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${Cerf_INCLUDE_DIR};${CMAKE_SOURCE_DIR}"
LINK_LIBRARIES "${Cerf_LIBRARIES}")
if(COMPILE_OK)
add_definitions("-DLIBCERF_WITHOUT_TYPEDEF")
else()
message(FATAL_ERROR "Compilation of libcerf test program failed with "
"the following output:\n" "${COMPILE_OUT}\n")
endif()
endif()
endif()
endif()
if(Cerf_IS_CPP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment