zezer3 / cmaked2

Automatically exported from code.google.com/p/cmaked2
0 stars 0 forks source link

Cannot find dmd compiler for D2 on windows. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the new windows support from Dean, output fails as follows.  Even though 
'dmd' works on the command line, find() comes up with the wrong path.  Problem 
occurs trying to run out-of-source 

>where dmd
C:\D\dmd2\windows\bin\dmd.exe

>cmake ..\cmaked2\tests
-- The D compiler identification is unknown
**** Debug Info: Enter CMakeDInformation.cmake
**** Debug Info: CMAKE_SYSTEM_NAME = Windows
**** Debug Info: CMAKE_D_COMPILER_ID =
**** Debug Info: CMAKE_BASE_NAME = dmd
**** Debug Info: Enter Windows-dmd.cmake
**** Debug Info: Exit Win-dmd.cmake
**** Debug Info: Exit CMakeDInformation.cmake
-- Check for working D compiler: C:/D/dmd/windows/bin/dmd.exe
**** Debug Info: Enter CMakeDInformation.cmake
**** Debug Info: CMAKE_SYSTEM_NAME = Windows
**** Debug Info: CMAKE_D_COMPILER_ID =
**** Debug Info: CMAKE_BASE_NAME = dmd
**** Debug Info: Enter Windows-dmd.cmake
**** Debug Info: Exit Win-dmd.cmake
**** Debug Info: Exit CMakeDInformation.cmake
CMake Error: your D compiler: "C:/D/dmd/windows/bin/dmd.exe" was not found.   
Please set CMAKE_D_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working D compiler: C:/D/dmd/windows/bin/dmd.exe -- broken
-- To force a specific D compiler set the DC environment variable
--     ie - export DC="/usr/bin/dmd"
CMake Error at C:/Program Files (x86)/CMake 
2.8/share/cmake-2.8/Modules/CMakeTestDCompiler.cmake:44 (MESSAGE):
  The D compiler "C:/D/dmd/windows/bin/dmd.exe" is not able to compile a
  simple test program.

  It fails with the following output:

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (PROJECT)

CMake Error: your D compiler: "C:/D/dmd/windows/bin/dmd.exe" was not found.   
Please set CMAKE_D_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

Original issue reported on code.google.com by kingshiz...@gmail.com on 4 Sep 2010 at 8:53

GoogleCodeExporter commented 9 years ago
Work-around by explictly specify D compiler location, as in:
>cmake ..\cmaked2\tests -DCMAKE_D_COMPILER=c:/d/dmd2/windows/bin/dmd.exe

Original comment by kingshiz...@gmail.com on 4 Sep 2010 at 9:25

GoogleCodeExporter commented 9 years ago
After reboot, I can no longer reproduce this.

Original comment by kingshiz...@gmail.com on 5 Sep 2010 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by jens.k.mueller@gmail.com on 3 Nov 2010 at 8:39