mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-07 09:28:53 +02:00
cmake: Fix setting default value for DBUS_BUILD_TESTS too late
This prevented setting cross compile support required for !158.
This commit is contained in:
parent
df7d444fdb
commit
e32e2c0eb5
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue