Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: unknown cmake command sfml_add_library w/ vs 2015 & cmake 3.3.0  (Read 2173 times)

0 Members and 2 Guests are viewing this topic.

johnnypaschen

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
I installed CMake to C:/Program Files(x86)/CMake
I extracted SFML to C:/SFML

in CMake GUI i set Where is source code to: C:/SFML
i also set Where to build the binaries to      : C:/SFML-build
I hit configure and picked VS 14 2015

and then this pops up

The C compiler identification is MSVC 19.0.23026.0
The CXX compiler identification is MSVC 19.0.23026.0
Check for working C compiler using: Visual Studio 14 2015
Check for working C compiler using: Visual Studio 14 2015 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 14 2015
Check for working CXX compiler using: Visual Studio 14 2015 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (include):
  include could not find load file:

    C:/SFML/cmake/Macros.cmake


CMake Error at System/CMakeLists.txt:101 (sfml_add_library):
  Unknown CMake command "sfml_add_library".


Configuring incomplete, errors occurred!
See also "C:/SFML-build/CMakeFiles/CMakeOutput.log".

Any ideas what's going on?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: unknown cmake command sfml_add_library w/ vs 2015 & cmake 3.3.0
« Reply #1 on: July 28, 2015, 02:08:30 am »
Did you accidentally delete the C:/SFML/cmake/Macros.cmake file?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

johnnypaschen

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: unknown cmake command sfml_add_library w/ vs 2015 & cmake 3.3.0
« Reply #2 on: July 28, 2015, 06:30:23 pm »
No, that's the weird thing, I never even had one to begin with. There was never one initially nor created for me to delete or do anything with.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: unknown cmake command sfml_add_library w/ vs 2015 & cmake 3.3.0
« Reply #3 on: July 29, 2015, 02:17:17 am »
Then you didn't get the full SFM source. Download the source again and the file will be there.

Keep in mind that you'll have to rebuild some of SFML's extlibs for VS 2015 and that SFML's CMake script has yet to be made compatible for VS 2015.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/