[CXX-1178] CMAKE_C_COMPILER, CMAKE_CXX_COMPILER not passed to CMake invocation for EP_mnmlstc_core Created: 21/Dec/16  Updated: 03/Apr/17  Resolved: 03/Apr/17

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mnmlstc_wrong_compiler.txt    
Issue Links:
Related
is related to CXX-1179 Investigate vendoring MNMLSTC Core Closed

 Description   

If users set CMAKE_C_COMPILER or CMAKE_CXX_COMPILER when invoking CMake, the specified compilers will be used to compile the driver, but not to compile external dependencies like EP_mnmlstc_core.

See the attached build log. Note that the user's CMake configure check says "Check for working CXX compiler: /opt/mongodbtoolchain/v2/bin/g++", but the EP_mnmlstc_core configure check says "Check for working CXX compiler: /usr/bin/c++".

Users can use the CC and CXX environment variables to work around this issue.



 Comments   
Comment by Githook User [ 03/Apr/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1178 CMAKE_C_COMPILER, CMAKE_CXX_COMPILER not passed to CMake invocation for EP_mnmlstc_core
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3c79987ecc9d64256b371a85b1dd533ab4b6c908

Comment by J Rassi [ 21/Dec/16 ]

Note that this issue becomes moot if we move forward with the work proposed in CXX-1179.

Generated at Wed Feb 07 22:01:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.