Hi ports@, does anyone have some experience in cmake to help me with it? I'm working on a port, however I'm having the following problem.
I have a CMakeLists.txt which looks for GDAL library with the line FIND_PACKAGE(GDAL REQUIRED) OK, cmake finds the GDAL library, as the port geo/gdal is installed, which is good. However, cmake finds the wrong filename, reporting -- Found GDAL: /usr/local/lib/libgdal.so instead of /usr/local/lib/libgdal.so.17.0 which is the correct. All other libraries are detected correctly, as show in daniel@workstation[0]:build$ cmake .. -- Found Proj: /usr/local/lib/libproj.so.5.6 -- Found GDAL: /usr/local/lib/libgdal.so -- Found Expat: /usr/lib/libexpat.so.9.0 -- Could not find GSL -- Found Sqlite3: /usr/local/lib/libsqlite3.so.15.1 -- Could not find TerraLib -- Found CURL: /usr/local/lib/libcurl.so.19.0 -- Could not find MPI -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) -- Configuring done -- Generating done -- Build files have been written to: /home/daniel/libopenmodeller-src-1.2.0/build daniel@workstation[0]:build$ cmake .. -- Found Proj: /usr/local/lib/libproj.so.5.6 -- Found GDAL: /usr/local/lib/libgdal.so -- Found Expat: /usr/lib/libexpat.so.9.0 -- Could not find GSL -- Found Sqlite3: /usr/local/lib/libsqlite3.so.15.1 -- Could not find TerraLib -- Found CURL: /usr/local/lib/libcurl.so.19.0 -- Could not find MPI -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) -- Configuring done -- Generating done -- Build files have been written to: /home/daniel/libopenmodeller-src-1.2.0/build daniel@workstation[0]:build$ Any hints here? Thank you.