Author: rinrab
Date: Wed Jul 10 17:08:51 2024
New Revision: 1919102
URL: http://svn.apache.org/viewvc?rev=1919102&view=rev
Log:
On the 'cmake' branch: Use enable_language() command to enable, optional for
the project, C++ compiler. This is much simpler than the variables that were
here before.
* CMakeLists.txt
(project): Do the explained bellow.
Modified:
subversion/branches/cmake/CMakeLists.txt
Modified: subversion/branches/cmake/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1919102&r1=1919101&r2=1919102&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Wed Jul 10 17:08:51 2024
@@ -48,24 +48,21 @@ read_version(
SVN_VER_MAJOR SVN_VER_MINOR SVN_VER_PATCH
)
-option(SVN_BUILD_SVNXX "Enable compilation of the C++ bindings (requires C++)"
OFF)
+project("Subversion"
+ VERSION "${SVN_VERSION}"
+ LANGUAGES C
+)
-# Only plain C compiler is needed by default
-set(languages C)
+option(SVN_BUILD_SVNXX "Enable compilation of the C++ bindings (requires C++)"
OFF)
# Require C++ compiler
if (SVN_BUILD_SVNXX)
# TODO: Also add SVN_BUILD_AUTH_KWALLET and SVN_BUILD_JAVAHL to the
# conditions when they done.
- list(APPEND languages CXX)
+ enable_language(CXX)
endif()
-project("Subversion"
- VERSION "${SVN_VERSION}"
- LANGUAGES ${languages}
-)
-
string(TOLOWER "${CMAKE_HOST_SYSTEM_PROCESSOR}-${CMAKE_HOST_SYSTEM_NAME}"
SVN_BUILD_HOST)
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}"
SVN_BUILD_TARGET)