Hello,
I use your cmake script to versionning my library with cmake. Everything worked until today when I have link errors like this :
Création de la bibliothÞque core.lib et de l'objet core.exp
CVTRES : fatal error CVT1100: ressource en double. Type: VERSION, nom: 1, langage: 0x040C
LINK : fatal error LNK1123: échec lors de la conversion en fichier COFF: fichier non valide ou endommagÚ
LINK Pass 1 failed. with 1123
NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake\bin\cmake.exe"' : code retour '0xffffffff'
I use this script in many of my CMakeLists.txt and I'm trying to solve this issue without result.
In each of my CMakeLists.txt I've add the following lines :
[...]
if(MSVC)
include(${COREALPI_DIR}/platform/cmake/common/generate_product_version.cmake)
generate_product_version(
VersionFilesOutputVariable
NAME ${PROJECT_NAME}
VERSION_MAJOR 0
VERSION_MINOR 0
VERSION_PATCH 0
VERSION_REVISION 1
COMPANY_NAME "ALPI"
FILE_DESCRIPTION "Librairie ${PROJECT_NAME}.dll"
)
endif(MSVC)
[...]
add_library(${PROJECT_NAME} SHARED
${SRC_FILES}
${VersionFilesOutputVariable}
)
[...]
Have you encounter similary problems ?
Thanks for help.
Hello,
I use your cmake script to versionning my library with cmake. Everything worked until today when I have link errors like this :
I use this script in many of my CMakeLists.txt and I'm trying to solve this issue without result.
In each of my CMakeLists.txt I've add the following lines :
Have you encounter similary problems ?
Thanks for help.