Notes |
|
(0040154)
|
Brad King
|
2016-01-08 09:46
|
|
Thanks for forwarding this report!
I'd prefer not to set up an entire Urho3D build, but I cannot reproduce this in a simple example. Here is a session:
------------------------------------------------------------------------
$ cat ../CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
project(Issue15905 C)
set(CMAKE_TRY_COMPILE_CONFIGURATION Debug)
include(CheckCSourceCompiles)
unset(RESULT CACHE)
CHECK_C_SOURCE_COMPILES([[
int main(void) { return 0; }
]] RESULT)
$ cmake --version
cmake version 3.4.1
...
$ cmake .. -G "Visual Studio 14 2015"
...
$ grep -A 3 'Performing C SOURCE FILE Test RESULT' CMakeFiles/CMakeOutput.log
Performing C SOURCE FILE Test RESULT succeded with the following output:
Change Dir: C:/.../CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_a30ca.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
------------------------------------------------------------------------
If I change the CMAKE_TRY_COMPILE_CONFIGURATION to "Release" then the log instead shows:
Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_ceffb.vcxproj" "/p:Configuration=Release" "/p:VisualStudioVersion=14.0"
Can you provide a http://sscce.org/ [^] ? |
|
|
(0040155)
|
Brad King
|
2016-01-08 09:55
|
|
|
|
(0040165)
|
Ivan K
|
2016-01-08 17:09
(edited on: 2016-01-08 17:12) |
|
> Can you provide a http://sscce.org/ [^] [^] ?
Sorry, I am not the author of cmake config in Urho. Also my knowledges of CMAKE language is very badly. I can not give detailed answers :(
|
|
|
(0040168)
|
Ivan K
|
2016-01-08 20:18
|
|
I insert string before try_run and it execution twice (!) with various values (Debug then Release)
message (STATUS ${CMAKE_TRY_COMPILE_CONFIGURATION})
try_run (URHO3D_RUN_RESULT URHO3D_COMPILE_RESULT ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_LIST_DIR}/CheckUrho3DLibrary.cpp
CMAKE_FLAGS ${IOS_FLAGS} -DLINK_LIBRARIES:STRING=${URHO3D_LIBRARIES}\;${BCM_VC_LIBRARIES}\;${ANDROID_LIBRARIES} -DINCLUDE_DIRECTORIES:STRING=${URHO3D_INCLUDE_DIRS} ${COMPILER_32BIT_FLAG} ${COMPILER_STATIC_FLAG}
COMPILE_OUTPUT_VARIABLE TRY_COMPILE_OUT RUN_OUTPUT_VARIABLE TRY_RUN_OUT)
-----------------------
Output:
Debug
Error copying file (if different) from "
D:/MyGames/MiniGame/Src/bin/CoreData" to "D:/MyGames/MiniGame/Bin/bin/CoreData".
Error copying file (if different) from "
D:/MyGames/MiniGame/Src/bin/Data" to "D:/MyGames/MiniGame/Bin/bin/Data".
Release
CMake Error at CMake/Modules/FindUrho3D.cmake:330 (message):
Could NOT find compatible Urho3D library in Urho3D SDK installation or
build tree. Use URHO3D_HOME environment variable or build option to
specify the location of the non-default SDK installation or build tree.
Ensure the specified location contains the Urho3D library of the requested
library type. Change Dir: D:/MyGames/MiniGame/Bin/CMakeFiles/CMakeTmp |
|
|
(0040169)
|
Ivan K
|
2016-01-08 20:36
|
|
In Cmake 3.3 only one message - Debug |
|
|
(0040189)
|
Brad King
|
2016-01-11 11:39
|
|
|
|
(0040190)
|
Brad King
|
2016-01-11 11:44
|
|
Re 0015905:0040189: Due to the logic linked in FindUrho3D I do not think this trouble has been demonstrated to be a real bug in CMake, so for now I'm resolving this as "suspended". If someone (perhaps from Urho3D) can narrow this down to a http://sscce.org/ [^] showing a regression in CMake then we can re-open this with such information.
|
|
|
(0040191)
|
Brad King
|
2016-01-11 12:50
|
|
|
|
(0041000)
|
Robert Maynard
|
2016-05-02 08:30
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|