Commit e32e2c0e authored by Ralf Habacker's avatar Ralf Habacker
Browse files

cmake: Fix setting default value for DBUS_BUILD_TESTS too late

This prevented setting cross compile support required for !158.
parent df7d444f
......@@ -21,6 +21,8 @@ if(CMAKE_MAJOR_VERSION GREATER 2)
endif()
endif()
option(DBUS_BUILD_TESTS "enable unit test code" ON)
# detect version
include(MacrosAutotools)
autoinit(configure.ac)
......@@ -300,8 +302,6 @@ set(DBUS_INCLUDES)
enable_testing()
########### command line options ###############
option(DBUS_BUILD_TESTS "enable unit test code" ON)
if(DBUS_BUILD_TESTS)
set(DBUS_ENABLE_EMBEDDED_TESTS ON)
set(DBUS_ENABLE_MODULAR_TESTS ON)
......
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