diff options
| author | Charles Karney <charles.karney@sri.com> | 2020-02-04 14:20:28 -0500 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2020-02-04 14:20:28 -0500 |
| commit | c74781ea2710f18a9f1c9728fa5eca5d3601ad5b (patch) | |
| tree | 098b6e3fde86e89d0a2daa69976769f65b576a81 /cmake/ProjUtilities.cmake | |
| parent | c3e7876325e5d43586a7eee43db1df9468f90d65 (diff) | |
| download | PROJ-c74781ea2710f18a9f1c9728fa5eca5d3601ad5b.tar.gz PROJ-c74781ea2710f18a9f1c9728fa5eca5d3601ad5b.zip | |
Make PROJ the CMake project name
Allow both find_package(PROJ) and find_package(PROJ4). More details
are in cmake/CMakeLists.txt.
Diffstat (limited to 'cmake/ProjUtilities.cmake')
| -rw-r--r-- | cmake/ProjUtilities.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/ProjUtilities.cmake b/cmake/ProjUtilities.cmake index d63cedac..447276ff 100644 --- a/cmake/ProjUtilities.cmake +++ b/cmake/ProjUtilities.cmake @@ -98,17 +98,17 @@ function(proj_target_output_name TARGET_NAME OUTPUT_NAME) message(SEND_ERROR "Error, the variable TARGET_NAME is not defined!") endif() - if(NOT DEFINED ${PROJECT_INTERN_NAME}_VERSION) + if(NOT DEFINED ${PROJECT_NAME}_VERSION) message(SEND_ERROR - "Error, the variable ${${PROJECT_INTERN_NAME}_VERSION} is not defined!") + "Error, the variable ${${PROJECT_NAME}_VERSION} is not defined!") endif() # On Windows, ABI version is specified using binary file name suffix. # On Unix, suffix is empty and SOVERSION is used instead. if(WIN32) - string(LENGTH "${${PROJECT_INTERN_NAME}_ABI_VERSION}" abilen) + string(LENGTH "${${PROJECT_NAME}_ABI_VERSION}" abilen) if(abilen GREATER 0) - set(SUFFIX "_${${PROJECT_INTERN_NAME}_ABI_VERSION}") + set(SUFFIX "_${${PROJECT_NAME}_ABI_VERSION}") endif() endif() |
