44
55PROJECT (openwsman)
66
7- cmake_minimum_required (VERSION 2.4)
7+ # 2.6 minimum because of CMP0005 (escaping defines)
8+ cmake_minimum_required (VERSION 2.6)
89
910include (CTest)
1011enable_testing ()
@@ -13,9 +14,7 @@ enable_testing()
1314#
1415if (COMMAND cmake_policy)
1516 cmake_policy (SET CMP0003 NEW)
16- # add_definitions escape behavior: old
17- # setting cmp0005 to NEW adds another \" around gcc -D defines
18- cmake_policy (SET CMP0005 OLD)
17+ cmake_policy (SET CMP0005 NEW)
1918 if ( POLICY CMP0042 )
2019 cmake_policy (SET CMP0042 NEW)
2120 endif ( POLICY CMP0042 )
@@ -68,11 +67,11 @@ ELSE( "${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr")
6867ENDIF ( "${CMAKE_INSTALL_PREFIX} " STREQUAL "/usr" )
6968SET ( WSMANCONF_DIR "${SYSCONFDIR} /openwsman" )
7069MESSAGE (STATUS "Configuration will be installed in ${WSMANCONF_DIR} " )
71- SET ( DEFAULT_CONFIG_FILE " \" ${WSMANCONF_DIR} /openwsman.conf\" " )
72- SET ( DEFAULT_CLIENT_CONFIG_FILE " \" ${WSMANCONF_DIR} /openwsman_client.conf\" " )
73- SET ( PACKAGE_SUBSCRIPTION_DIR " /var/lib/openwsman/subscriptions" )
74- SET ( PACKAGE_PLUGIN_DIR " ${LIB_INSTALL_DIR} /openwsman/plugins" )
75- SET ( PACKAGE_AUTH_DIR " ${LIB_INSTALL_DIR} /openwsman/authenticators" )
70+ SET ( DEFAULT_CONFIG_FILE \"${WSMANCONF_DIR} /openwsman.conf\")
71+ SET ( DEFAULT_CLIENT_CONFIG_FILE \"${WSMANCONF_DIR} /openwsman_client.conf\")
72+ SET ( PACKAGE_SUBSCRIPTION_DIR /var/lib/openwsman/subscriptions )
73+ SET ( PACKAGE_PLUGIN_DIR ${LIB_INSTALL_DIR} /openwsman/plugins )
74+ SET ( PACKAGE_AUTH_DIR ${LIB_INSTALL_DIR} /openwsman/authenticators )
7675
7776
7877# Macro for error message when header files not present, but build option
0 commit comments