The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15071 
====================================================================== 
Reported By:                Frank Benkstein
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15071
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-08-08 11:47 EDT
Last Modified:              2014-08-08 11:47 EDT
====================================================================== 
Summary:                    building cmake on Windows against statically
compiled openssl puts dlls into bin directory
Description: 
I am building a custom version of cmake 3.0.1 with 32bit Visual Studio 2010 on
64bit Windows 7.  In my build script I build openssl statically and then build
cmake with an installed version 3.0.0.

It seems that cmake builds and links correctly agaist my own openssl. 
Unfortunately, the libea32.dll and ssleay32.dll from the locally installed cmake
are also picked up and put into the install prefix.

I tracked this down to these rules in my ninja file:

# =============================================================================
# Write statements declared in CMakeLists.txt:
# C:/Users/Frank/Projects/custom-cmake/cmake/src/Utilities/cmcurl/CMakeLists.txt
# =============================================================================

<-- snip -->

#############################################
# Custom command for bin\.\libeay32.dll

build bin\.\libeay32.dll: CUSTOM_COMMAND C$:\usr\CMake-3.0.0\bin\libeay32.dll ||
Utilities\cmzlib\cmzlib.lib
  COMMAND = cmd.exe /C "cd /D
C:\Users\Frank\Projects\custom-cmake\cmake\gen\cmake-build\Utilities\cmcurl &&
C:\usr\CMake-3.0.0\bin\cmake.exe -E copy C:/usr/CMake-3.0.0/bin/libeay32.dll
C:/Users/Frank/Projects/custom-cmake/cmake/gen/cmake-build/bin/./libeay32.dll"
  DESC = Generating ../../bin/./libeay32.dll

#############################################
# Custom command for bin\.\ssleay32.dll

build bin\.\ssleay32.dll: CUSTOM_COMMAND C$:\usr\CMake-3.0.0\bin\ssleay32.dll ||
Utilities\cmzlib\cmzlib.lib
  COMMAND = cmd.exe /C "cd /D
C:\Users\Frank\Projects\custom-cmake\cmake\gen\cmake-build\Utilities\cmcurl &&
C:\usr\CMake-3.0.0\bin\cmake.exe -E copy C:/usr/CMake-3.0.0/bin/ssleay32.dll
C:/Users/Frank/Projects/custom-cmake/cmake/gen/cmake-build/bin/./ssleay32.dll"
  DESC = Generating ../../bin/./ssleay32.dll

I found the responsible code block in Utilities/cmcurl/CMakeLists.txt but I have
no idea how to fix it myself.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-08-08 11:47 Frank BenksteinNew Issue                                    
======================================================================

-- 

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