test(c): move ockam_build_tests flag definition before its usage
@@ -58,6 +58,8 @@ else()
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${OCKAM_TARGET_TRIPLE}")
endif()
+option(OCKAM_BUILD_TESTS "Builds Ockam tests." ON)
+
include(ockam_macros)
include(ockam_copts)
include(ockam_cc_binary)
@@ -99,8 +101,6 @@ else()
set(CMAKE_INSTALL_MESSAGE LAZY)
endif()
-option(OCKAM_BUILD_TESTS "Builds Ockam tests." ON)
-
string(JOIN " " CMAKE_CXX_FLAGS ${OCKAM_DEFAULT_COPTS})
message(STATUS "CMake Version : " "${CMAKE_SYSTEM_VERSION}")
message(STATUS "Compiler : " "${CMAKE_C_COMPILER}")
