Page 1 of 1

FindCopperspice.cmake ?

Posted: Sun Feb 07 2016 9:05 am
by canyonDan
just curious if this is already floating around?

Thanks!

Re: FindCopperspice.cmake ?

Posted: Mon Feb 08 2016 11:30 am
by smil3y
Hello,

It's not needed actually because CopperSpice ships CopperSpiceConfig, I'll quote the CMake docs:
Config mode attempts to locate a configuration file provided by the package to be found. A cache entry called <package>_DIR is created to hold the directory containing the file. By default the command searches for a package with the name <package>. If the NAMES option is given the names following it are used instead of <package>. The command searches for a file called <name>Config.cmake or <lower-case-name>-config.cmake for each name specified. A replacement set of possible configuration file names may be given using the CONFIGS option. The search procedure is specified below. Once found, the configuration file is read and processed by CMake. Since the file is provided by the package it already knows the location of package contents. The full path to the configuration file is stored in the cmake variable <package>_CONFIG.
For reference see https://cmake.org/cmake/help/v3.0/comma ... ckage.html.

Cheers!

Re: FindCopperspice.cmake ?

Posted: Mon Feb 08 2016 4:44 pm
by canyonDan
thank you!