Hi all,
 
I would like to report a bug which I found in CMake 3.6.0-rc1. However, it is also present in release 3.5.2 and probably earlier releases as well.
 
Description:
The generated rule in rules.ninja for linking static libraries contains the command for actual linking and an additional command ": $TARGET_FILE". This works fine on linux but fails on windows (":" is not a valid command). This additional command arises (for c++) from the CMAKE_CXX_ARCHIVE_FINISH variable which is added to the rule in cmNinjaNormalTargetGenerator::ComputeLinkCmd(). I did not find out where the variable is set.
 
But I found a work around which is to set the CMAKE_CXX_ARCHIVE_FINISH variable to empty in my CMakeLists.txt. If I do that everything works fine. A general solution in 3.6.0 would be great.
 
regards
Michael
 
 
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to