irixxxx / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
55 stars 25 forks source link

cmake in infinitive loop #31

Closed paloaltonetworksblu closed 3 years ago

paloaltonetworksblu commented 3 years ago

trying to cross build uamqp on mips platform. I added SET(CMAKE_C_COMPILER /opt/mips64-sysroot/usr/bin/mips64-octeon-linux-gnu-gcc) in CMakeLists.txt then ran "cmake ..". It gives the following message and the configure goes on and on:

You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= /usr/bin/cc CMAKE_C_COMPILER= /usr/bin/cc

Not sure what "your cache" means, how do I get around this problem?

irixxxx commented 3 years ago

Just throw away the cmake output files. I've googled this for you: https://stackoverflow.com/questions/9680420/looking-for-a-cmake-clean-command-to-clear-up-cmake-output. But how is this related to picodrive?

paloaltonetworksblu commented 3 years ago

googled online and found it's a known issue. I followed the workaround to put the compiler settings before the project statement, this issue is resolved.